|
|
@ -1,8 +1,10 @@ |
|
|
|
import 'dart:io'; |
|
|
|
import 'dart:io'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import 'package:flutter/cupertino.dart'; |
|
|
|
import 'package:flutter/gestures.dart'; |
|
|
|
import 'package:flutter/gestures.dart'; |
|
|
|
import 'package:flutter/material.dart'; |
|
|
|
import 'package:flutter/material.dart'; |
|
|
|
import 'package:huixiang/generated/l10n.dart'; |
|
|
|
import 'package:huixiang/generated/l10n.dart'; |
|
|
|
|
|
|
|
import 'package:huixiang/utils/constant.dart'; |
|
|
|
import 'package:huixiang/utils/font_weight.dart'; |
|
|
|
import 'package:huixiang/utils/font_weight.dart'; |
|
|
|
import 'package:huixiang/view_widget/border_text.dart'; |
|
|
|
import 'package:huixiang/view_widget/border_text.dart'; |
|
|
|
import 'package:huixiang/view_widget/round_button.dart'; |
|
|
|
import 'package:huixiang/view_widget/round_button.dart'; |
|
|
@ -18,12 +20,10 @@ class GuidePage extends StatefulWidget { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
class _GuidePage extends State<GuidePage> { |
|
|
|
class _GuidePage extends State<GuidePage> { |
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
void initState() { |
|
|
|
void initState() { |
|
|
|
super.initState(); |
|
|
|
super.initState(); |
|
|
|
if(Platform.isAndroid) |
|
|
|
if (Platform.isAndroid) isLogin(); |
|
|
|
isLogin(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
isLogin() async { |
|
|
|
isLogin() async { |
|
|
@ -123,8 +123,10 @@ class _GuidePage extends State<GuidePage> { |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
"●", |
|
|
|
"●", |
|
|
|
style: |
|
|
|
style: TextStyle( |
|
|
|
TextStyle(fontSize: 8.sp, color: Colors.black), |
|
|
|
fontSize: 8.sp, |
|
|
|
|
|
|
|
color: Colors.black, |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
|
width: 10.w, |
|
|
|
width: 10.w, |
|
|
@ -132,7 +134,9 @@ class _GuidePage extends State<GuidePage> { |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
"●", |
|
|
|
"●", |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 8.sp, color: Color(0xffB2B2B2)), |
|
|
|
fontSize: 8.sp, |
|
|
|
|
|
|
|
color: Color(0xffB2B2B2), |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
|
width: 10.w, |
|
|
|
width: 10.w, |
|
|
@ -140,7 +144,9 @@ class _GuidePage extends State<GuidePage> { |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
"●", |
|
|
|
"●", |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 8.sp, color: Color(0xffB2B2B2)), |
|
|
|
fontSize: 8.sp, |
|
|
|
|
|
|
|
color: Color(0xffB2B2B2), |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
|
height: 108.h, |
|
|
|
height: 108.h, |
|
|
@ -197,7 +203,8 @@ class _GuidePage extends State<GuidePage> { |
|
|
|
fontSize: 16.sp, |
|
|
|
fontSize: 16.sp, |
|
|
|
height: 1.5.h, |
|
|
|
height: 1.5.h, |
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
color: Color(0XFF727272)), |
|
|
|
color: Color(0XFF727272), |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
@ -211,15 +218,19 @@ class _GuidePage extends State<GuidePage> { |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
"●", |
|
|
|
"●", |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 8.sp, color: Color(0xffB2B2B2)), |
|
|
|
fontSize: 8.sp, |
|
|
|
|
|
|
|
color: Color(0xffB2B2B2), |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
|
width: 10.w, |
|
|
|
width: 10.w, |
|
|
|
), |
|
|
|
), |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
"●", |
|
|
|
"●", |
|
|
|
style: |
|
|
|
style: TextStyle( |
|
|
|
TextStyle(fontSize: 8.sp, color: Colors.black), |
|
|
|
fontSize: 8.sp, |
|
|
|
|
|
|
|
color: Colors.black, |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
|
width: 10.w, |
|
|
|
width: 10.w, |
|
|
@ -227,7 +238,9 @@ class _GuidePage extends State<GuidePage> { |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
"●", |
|
|
|
"●", |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 8.sp, color: Color(0xffB2B2B2)), |
|
|
|
fontSize: 8.sp, |
|
|
|
|
|
|
|
color: Color(0xffB2B2B2), |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
|
height: 108.h, |
|
|
|
height: 108.h, |
|
|
@ -245,7 +258,9 @@ class _GuidePage extends State<GuidePage> { |
|
|
|
color: Colors.white, |
|
|
|
color: Colors.white, |
|
|
|
child: Center( |
|
|
|
child: Center( |
|
|
|
child: Container( |
|
|
|
child: Container( |
|
|
|
margin: EdgeInsets.only(top: 120.h, left: 19.w, right: 19.w), |
|
|
|
margin: EdgeInsets.only( |
|
|
|
|
|
|
|
top: 120.h, left: 19.w, right: 19.w, |
|
|
|
|
|
|
|
), |
|
|
|
child: Stack( |
|
|
|
child: Stack( |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Column( |
|
|
|
Column( |
|
|
@ -284,7 +299,8 @@ class _GuidePage extends State<GuidePage> { |
|
|
|
fontSize: 16.sp, |
|
|
|
fontSize: 16.sp, |
|
|
|
height: 1.5.h, |
|
|
|
height: 1.5.h, |
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
color: Color(0XFF727272)), |
|
|
|
color: Color(0XFF727272), |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
@ -298,7 +314,9 @@ class _GuidePage extends State<GuidePage> { |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
"●", |
|
|
|
"●", |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 8.sp, color: Color(0xffB2B2B2)), |
|
|
|
fontSize: 8.sp, |
|
|
|
|
|
|
|
color: Color(0xffB2B2B2), |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
|
width: 10.w, |
|
|
|
width: 10.w, |
|
|
@ -306,15 +324,19 @@ class _GuidePage extends State<GuidePage> { |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
"●", |
|
|
|
"●", |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 8.sp, color: Color(0xffB2B2B2)), |
|
|
|
fontSize: 8.sp, |
|
|
|
|
|
|
|
color: Color(0xffB2B2B2), |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
|
width: 10.w, |
|
|
|
width: 10.w, |
|
|
|
), |
|
|
|
), |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
"●", |
|
|
|
"●", |
|
|
|
style: |
|
|
|
style: TextStyle( |
|
|
|
TextStyle(fontSize: 8.sp, color: Colors.black), |
|
|
|
fontSize: 8.sp, |
|
|
|
|
|
|
|
color: Colors.black, |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
|
height: 108.h, |
|
|
|
height: 108.h, |
|
|
@ -342,7 +364,9 @@ class _GuidePage extends State<GuidePage> { |
|
|
|
fit: BoxFit.fill, |
|
|
|
fit: BoxFit.fill, |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
|
height: MediaQuery.of(context).size.width >= 650 ? 20.h :66.h, |
|
|
|
height: MediaQuery.of(context).size.width >= 650 |
|
|
|
|
|
|
|
? 20.h |
|
|
|
|
|
|
|
: 66.h, |
|
|
|
), |
|
|
|
), |
|
|
|
Container( |
|
|
|
Container( |
|
|
|
alignment: Alignment.center, |
|
|
|
alignment: Alignment.center, |
|
|
@ -352,11 +376,14 @@ class _GuidePage extends State<GuidePage> { |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 24.sp, |
|
|
|
fontSize: 24.sp, |
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
color: Color(0XFF32A060)), |
|
|
|
color: Color(0XFF32A060), |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
|
height: MediaQuery.of(context).size.width >= 650 ? 15.h :23.h, |
|
|
|
height: MediaQuery.of(context).size.width >= 650 |
|
|
|
|
|
|
|
? 15.h |
|
|
|
|
|
|
|
: 23.h, |
|
|
|
), |
|
|
|
), |
|
|
|
Padding( |
|
|
|
Padding( |
|
|
|
padding: EdgeInsets.only(left: 52.w, right: 52.w), |
|
|
|
padding: EdgeInsets.only(left: 52.w, right: 52.w), |
|
|
@ -367,7 +394,8 @@ class _GuidePage extends State<GuidePage> { |
|
|
|
fontSize: 16.sp, |
|
|
|
fontSize: 16.sp, |
|
|
|
height: 1.5.h, |
|
|
|
height: 1.5.h, |
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
color: Color(0XFF727272)), |
|
|
|
color: Color(0XFF727272), |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
@ -381,7 +409,8 @@ class _GuidePage extends State<GuidePage> { |
|
|
|
child: Container( |
|
|
|
child: Container( |
|
|
|
height: 50.h, |
|
|
|
height: 50.h, |
|
|
|
margin: EdgeInsets.only( |
|
|
|
margin: EdgeInsets.only( |
|
|
|
left: 71.w, right: 71.w, bottom: 55.h), |
|
|
|
left: 71.w, right: 71.w, bottom: 55.h, |
|
|
|
|
|
|
|
), |
|
|
|
alignment: Alignment.center, |
|
|
|
alignment: Alignment.center, |
|
|
|
child: BorderText( |
|
|
|
child: BorderText( |
|
|
|
padding: EdgeInsets.all(5), |
|
|
|
padding: EdgeInsets.all(5), |
|
|
@ -400,20 +429,20 @@ class _GuidePage extends State<GuidePage> { |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
) |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
showAlertDialog() { |
|
|
|
showAlertDialog() { |
|
|
|
//显示对话框 |
|
|
|
//显示对话框 |
|
|
|
showDialog( |
|
|
|
showDialog( |
|
|
|
context: context, |
|
|
|
context: context, |
|
|
|
builder: (BuildContext context) { |
|
|
|
builder: (BuildContext context) { |
|
|
|
return WillPopScope( |
|
|
|
return PopScope( |
|
|
|
onWillPop: () async => false, |
|
|
|
canPop: true, |
|
|
|
|
|
|
|
onPopInvoked: (isPop) {}, |
|
|
|
child: SimpleDialog( |
|
|
|
child: SimpleDialog( |
|
|
|
titlePadding: EdgeInsets.all(10), |
|
|
|
titlePadding: EdgeInsets.all(10), |
|
|
|
backgroundColor: Colors.transparent, |
|
|
|
backgroundColor: Colors.transparent, |
|
|
@ -422,9 +451,6 @@ class _GuidePage extends State<GuidePage> { |
|
|
|
borderRadius: BorderRadius.circular(6), |
|
|
|
borderRadius: BorderRadius.circular(6), |
|
|
|
), |
|
|
|
), |
|
|
|
children: <Widget>[ |
|
|
|
children: <Widget>[ |
|
|
|
Stack( |
|
|
|
|
|
|
|
alignment: Alignment.bottomCenter, |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
Container( |
|
|
|
Container( |
|
|
|
alignment: Alignment.center, |
|
|
|
alignment: Alignment.center, |
|
|
|
width: double.infinity, |
|
|
|
width: double.infinity, |
|
|
@ -447,6 +473,10 @@ class _GuidePage extends State<GuidePage> { |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
Expanded( |
|
|
|
|
|
|
|
child: SingleChildScrollView( |
|
|
|
|
|
|
|
child: Column( |
|
|
|
|
|
|
|
children: [ |
|
|
|
Text.rich( |
|
|
|
Text.rich( |
|
|
|
TextSpan(children: [ |
|
|
|
TextSpan(children: [ |
|
|
|
TextSpan( |
|
|
|
TextSpan( |
|
|
@ -463,7 +493,8 @@ class _GuidePage extends State<GuidePage> { |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
fontSize: 14.sp, |
|
|
|
fontSize: 14.sp, |
|
|
|
color: Color(0xff32A060)), |
|
|
|
color: Color(0xff32A060), |
|
|
|
|
|
|
|
), |
|
|
|
recognizer: TapGestureRecognizer() |
|
|
|
recognizer: TapGestureRecognizer() |
|
|
|
..onTap = () { |
|
|
|
..onTap = () { |
|
|
|
Navigator.of(context) |
|
|
|
Navigator.of(context) |
|
|
@ -472,11 +503,10 @@ class _GuidePage extends State<GuidePage> { |
|
|
|
), |
|
|
|
), |
|
|
|
]), |
|
|
|
]), |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
10.d, |
|
|
|
height: 10.h, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
Text( |
|
|
|
Text( |
|
|
|
S.of(context).yinsizhengce2, |
|
|
|
S.of(context).yinsizhengce2, |
|
|
|
|
|
|
|
textAlign: TextAlign.justify, |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
color: Color(0xff727272), |
|
|
|
color: Color(0xff727272), |
|
|
|
fontSize: 14.sp, |
|
|
|
fontSize: 14.sp, |
|
|
@ -484,19 +514,18 @@ class _GuidePage extends State<GuidePage> { |
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
|
|
|
|
height: 16.h, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
16.d, |
|
|
|
Row( |
|
|
|
Row( |
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
GestureDetector( |
|
|
|
GestureDetector( |
|
|
|
onTap: () { |
|
|
|
onTap: () { |
|
|
|
Navigator.of(context).pop(); |
|
|
|
// Navigator.of(context).pop(); |
|
|
|
// exit(0); |
|
|
|
exit(0); |
|
|
|
}, |
|
|
|
}, |
|
|
|
child: Container( |
|
|
|
child: Container( |
|
|
|
height: 40.h, |
|
|
|
height: 40.h, |
|
|
@ -506,8 +535,8 @@ class _GuidePage extends State<GuidePage> { |
|
|
|
padding: EdgeInsets.only( |
|
|
|
padding: EdgeInsets.only( |
|
|
|
top: 10.h, |
|
|
|
top: 10.h, |
|
|
|
bottom: 10.h, |
|
|
|
bottom: 10.h, |
|
|
|
left: 36.w, |
|
|
|
left: 24.w, |
|
|
|
right: 36.w, |
|
|
|
right: 24.w, |
|
|
|
), |
|
|
|
), |
|
|
|
text: S.of(context).jujue, |
|
|
|
text: S.of(context).jujue, |
|
|
|
fontSize: 12.sp, |
|
|
|
fontSize: 12.sp, |
|
|
@ -518,10 +547,9 @@ class _GuidePage extends State<GuidePage> { |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
15.vd, |
|
|
|
width: 21.w, |
|
|
|
Expanded( |
|
|
|
), |
|
|
|
child: Container( |
|
|
|
Container( |
|
|
|
|
|
|
|
height: 40.h, |
|
|
|
height: 40.h, |
|
|
|
margin: EdgeInsets.only(bottom: 20.h), |
|
|
|
margin: EdgeInsets.only(bottom: 20.h), |
|
|
|
alignment: Alignment.bottomCenter, |
|
|
|
alignment: Alignment.bottomCenter, |
|
|
@ -535,8 +563,8 @@ class _GuidePage extends State<GuidePage> { |
|
|
|
}); |
|
|
|
}); |
|
|
|
SharesdkPlugin.uploadPrivacyPermissionStatus( |
|
|
|
SharesdkPlugin.uploadPrivacyPermissionStatus( |
|
|
|
1, |
|
|
|
1, |
|
|
|
(success) => { |
|
|
|
(success) { |
|
|
|
Navigator.of(context).pop(), |
|
|
|
Navigator.of(context).pop(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
); |
|
|
|
); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -550,15 +578,15 @@ class _GuidePage extends State<GuidePage> { |
|
|
|
radius: 23, |
|
|
|
radius: 23, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
|
|
|
|
height: 20.h, |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
|
) |
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
|
)); |
|
|
|
), |
|
|
|
|
|
|
|
); |
|
|
|
}, |
|
|
|
}, |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|