|
|
|
@ -2,6 +2,7 @@ import 'package:flutter/cupertino.dart';
|
|
|
|
|
import 'package:flutter/material.dart'; |
|
|
|
|
import 'package:huixiang/view_widget/border_text.dart'; |
|
|
|
|
import 'package:shared_preferences/shared_preferences.dart'; |
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|
|
|
|
|
|
|
|
|
class GuidePage extends StatefulWidget { |
|
|
|
|
@override |
|
|
|
@ -11,7 +12,6 @@ class GuidePage extends StatefulWidget {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
class _GuidePage extends State<GuidePage> { |
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
Widget build(BuildContext context) { |
|
|
|
|
return Scaffold( |
|
|
|
@ -35,7 +35,7 @@ class _GuidePage extends State<GuidePage> {
|
|
|
|
|
color: Colors.white, |
|
|
|
|
child: Center( |
|
|
|
|
child: Container( |
|
|
|
|
margin: EdgeInsets.only(top: 120, left: 19, right: 19), |
|
|
|
|
margin: EdgeInsets.only(top: 120.h, left: 19.w, right: 19.w), |
|
|
|
|
child: Stack( |
|
|
|
|
children: [ |
|
|
|
|
Column( |
|
|
|
@ -48,29 +48,29 @@ class _GuidePage extends State<GuidePage> {
|
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
height: 66, |
|
|
|
|
height: 66.h, |
|
|
|
|
), |
|
|
|
|
Padding( |
|
|
|
|
padding: EdgeInsets.only(left: 37, right: 37), |
|
|
|
|
padding: EdgeInsets.only(left: 37.w, right: 37.w), |
|
|
|
|
child: Text( |
|
|
|
|
"会员最新资讯抢先看", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 24, |
|
|
|
|
fontSize: 24.sp, |
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
color: Color(0XFF32A060)), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
height: 23, |
|
|
|
|
height: 23.h, |
|
|
|
|
), |
|
|
|
|
Padding( |
|
|
|
|
padding: EdgeInsets.only(left: 19, right: 19), |
|
|
|
|
padding: EdgeInsets.only(left: 19.w, right: 19.w), |
|
|
|
|
child: Text( |
|
|
|
|
"新增多项功能,海量优惠资讯实时推送", |
|
|
|
|
textAlign: TextAlign.center, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 16, |
|
|
|
|
height:1.5, |
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
height: 1.5.h, |
|
|
|
|
fontWeight: FontWeight.w600, |
|
|
|
|
color: Color(0XFF727272)), |
|
|
|
|
), |
|
|
|
@ -88,23 +88,23 @@ class _GuidePage extends State<GuidePage> {
|
|
|
|
|
style: TextStyle(fontSize: 8, color: Colors.black), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
width: 10, |
|
|
|
|
width: 10.w, |
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
"●", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 8, color: Color(0xffB2B2B2)), |
|
|
|
|
fontSize: 8.sp, color: Color(0xffB2B2B2)), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
width: 10, |
|
|
|
|
width: 10.w, |
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
"●", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 8, color: Color(0xffB2B2B2)), |
|
|
|
|
fontSize: 8.sp, color: Color(0xffB2B2B2)), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
height: 98, |
|
|
|
|
height: 108.h, |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
@ -119,7 +119,7 @@ class _GuidePage extends State<GuidePage> {
|
|
|
|
|
color: Colors.white, |
|
|
|
|
child: Center( |
|
|
|
|
child: Container( |
|
|
|
|
margin: EdgeInsets.only(top: 120, left: 19, right: 19), |
|
|
|
|
margin: EdgeInsets.only(top: 120.h, left: 19.w, right: 19.w), |
|
|
|
|
child: Stack( |
|
|
|
|
children: [ |
|
|
|
|
Column( |
|
|
|
@ -132,29 +132,29 @@ class _GuidePage extends State<GuidePage> {
|
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
height: 66, |
|
|
|
|
height: 66.h, |
|
|
|
|
), |
|
|
|
|
Padding( |
|
|
|
|
padding: EdgeInsets.only(left: 37, right: 37), |
|
|
|
|
padding: EdgeInsets.only(left: 37.w, right: 37.w), |
|
|
|
|
child: Text( |
|
|
|
|
"全新集团联盟店会员点餐", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 24, |
|
|
|
|
fontSize: 24.sp, |
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
color: Color(0XFF32A060)), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
height: 23, |
|
|
|
|
height: 23.h, |
|
|
|
|
), |
|
|
|
|
Padding( |
|
|
|
|
padding: EdgeInsets.only(left: 19, right: 19), |
|
|
|
|
padding: EdgeInsets.only(left: 19.w, right: 19.w), |
|
|
|
|
child: Text( |
|
|
|
|
"新增多项功能,使用平台钱包优惠多多,更有充值优惠享不停", |
|
|
|
|
textAlign: TextAlign.center, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 16, |
|
|
|
|
height:1.5, |
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
height: 1.5.h, |
|
|
|
|
fontWeight: FontWeight.w600, |
|
|
|
|
color: Color(0XFF727272)), |
|
|
|
|
), |
|
|
|
@ -170,17 +170,18 @@ class _GuidePage extends State<GuidePage> {
|
|
|
|
|
Text( |
|
|
|
|
"●", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 8, color: Color(0xffB2B2B2)), |
|
|
|
|
fontSize: 8.sp, color: Color(0xffB2B2B2)), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
width: 10, |
|
|
|
|
width: 10.w, |
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
"●", |
|
|
|
|
style: TextStyle(fontSize: 8, color: Colors.black), |
|
|
|
|
style: |
|
|
|
|
TextStyle(fontSize: 8.sp, color: Colors.black), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
width: 10, |
|
|
|
|
width: 10.w, |
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
"●", |
|
|
|
@ -188,7 +189,7 @@ class _GuidePage extends State<GuidePage> {
|
|
|
|
|
fontSize: 8, color: Color(0xffB2B2B2)), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
height: 98, |
|
|
|
|
height: 108.h, |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
@ -203,7 +204,7 @@ class _GuidePage extends State<GuidePage> {
|
|
|
|
|
color: Colors.white, |
|
|
|
|
child: Center( |
|
|
|
|
child: Container( |
|
|
|
|
margin: EdgeInsets.only(top: 120, left: 19, right: 19), |
|
|
|
|
margin: EdgeInsets.only(top: 120.h, left: 19.w, right: 19.w), |
|
|
|
|
child: Stack( |
|
|
|
|
children: [ |
|
|
|
|
Column( |
|
|
|
@ -219,11 +220,11 @@ class _GuidePage extends State<GuidePage> {
|
|
|
|
|
height: 66, |
|
|
|
|
), |
|
|
|
|
Padding( |
|
|
|
|
padding: EdgeInsets.only(left: 37, right: 37), |
|
|
|
|
padding: EdgeInsets.only(left: 37.w, right: 37.w), |
|
|
|
|
child: Text( |
|
|
|
|
"会员活动专区", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 24, |
|
|
|
|
fontSize: 24.sp, |
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
color: Color(0XFF32A060)), |
|
|
|
|
), |
|
|
|
@ -232,13 +233,13 @@ class _GuidePage extends State<GuidePage> {
|
|
|
|
|
height: 23, |
|
|
|
|
), |
|
|
|
|
Padding( |
|
|
|
|
padding: EdgeInsets.only(left: 19, right: 19), |
|
|
|
|
padding: EdgeInsets.only(left: 19.w, right: 19.w), |
|
|
|
|
child: Text( |
|
|
|
|
"新增会员任务得积分,消费可得绿金、积分商城换购", |
|
|
|
|
textAlign: TextAlign.center, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 16, |
|
|
|
|
height:1.5, |
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
height: 1.5.h, |
|
|
|
|
fontWeight: FontWeight.w600, |
|
|
|
|
color: Color(0XFF727272)), |
|
|
|
|
), |
|
|
|
@ -254,25 +255,26 @@ class _GuidePage extends State<GuidePage> {
|
|
|
|
|
Text( |
|
|
|
|
"●", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 8, color: Color(0xffB2B2B2)), |
|
|
|
|
fontSize: 8.sp, color: Color(0xffB2B2B2)), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
width: 10, |
|
|
|
|
width: 10.w, |
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
"●", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 8, color: Color(0xffB2B2B2)), |
|
|
|
|
fontSize: 8.sp, color: Color(0xffB2B2B2)), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
width: 10, |
|
|
|
|
width: 10.w, |
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
"●", |
|
|
|
|
style: TextStyle(fontSize: 8, color: Colors.black), |
|
|
|
|
style: |
|
|
|
|
TextStyle(fontSize: 8.sp, color: Colors.black), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
height: 98, |
|
|
|
|
height: 108.h, |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
@ -287,66 +289,70 @@ class _GuidePage extends State<GuidePage> {
|
|
|
|
|
color: Colors.white, |
|
|
|
|
child: Center( |
|
|
|
|
child: Container( |
|
|
|
|
margin: EdgeInsets.only(top: 108), |
|
|
|
|
child: |
|
|
|
|
child: Stack( |
|
|
|
|
children: [ |
|
|
|
|
Column( |
|
|
|
|
children: [ |
|
|
|
|
Image.asset( |
|
|
|
|
"assets/image/icon_guide_4.png", |
|
|
|
|
width: double.infinity, |
|
|
|
|
fit: BoxFit.fill, |
|
|
|
|
), |
|
|
|
|
Image.asset( |
|
|
|
|
"assets/image/icon_guide_4.png", |
|
|
|
|
width: double.infinity, |
|
|
|
|
fit: BoxFit.fill, |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
height: 66, |
|
|
|
|
height: 66.h, |
|
|
|
|
), |
|
|
|
|
Padding( |
|
|
|
|
padding: EdgeInsets.only(left: 104, right: 104), |
|
|
|
|
padding: EdgeInsets.only(left: 104.w, right: 104.w), |
|
|
|
|
child: Text( |
|
|
|
|
"会员活动专区", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 24, |
|
|
|
|
fontSize: 24.sp, |
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
color: Color(0XFF32A060)), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
height: 23, |
|
|
|
|
height: 23.h, |
|
|
|
|
), |
|
|
|
|
Padding( |
|
|
|
|
padding: EdgeInsets.only(left: 52, right: 52), |
|
|
|
|
padding: EdgeInsets.only(left: 52.w, right: 52.w), |
|
|
|
|
child: Text( |
|
|
|
|
"传递友爱纯净健康有机环保智慧理念", |
|
|
|
|
textAlign: TextAlign.center, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 16, |
|
|
|
|
height:1.5, |
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
height: 1.5.h, |
|
|
|
|
fontWeight: FontWeight.w600, |
|
|
|
|
color: Color(0XFF727272)), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
height: 50, |
|
|
|
|
), |
|
|
|
|
GestureDetector( |
|
|
|
|
onTap: (){ |
|
|
|
|
toNext(); |
|
|
|
|
}, |
|
|
|
|
child:Container( |
|
|
|
|
margin: EdgeInsets.only(left: 71,right: 71), |
|
|
|
|
alignment: Alignment.bottomCenter, |
|
|
|
|
child:BorderText( |
|
|
|
|
padding: EdgeInsets.all(11), |
|
|
|
|
text: "立即体验", |
|
|
|
|
fontSize: 20, |
|
|
|
|
textColor: Color(0xFF32A060), |
|
|
|
|
borderColor: Color(0xFF32A060), |
|
|
|
|
borderWidth: 1, |
|
|
|
|
radius: 26.5, |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
Align( |
|
|
|
|
alignment: Alignment.bottomCenter, |
|
|
|
|
child: GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
toNext(); |
|
|
|
|
}, |
|
|
|
|
child: Container( |
|
|
|
|
height: 50.h, |
|
|
|
|
margin: EdgeInsets.only( |
|
|
|
|
left: 71.w, right: 71.w, bottom: 55.h), |
|
|
|
|
alignment: Alignment.bottomCenter, |
|
|
|
|
child: BorderText( |
|
|
|
|
padding: EdgeInsets.all(11), |
|
|
|
|
text: "立即体验", |
|
|
|
|
fontSize: 20.sp, |
|
|
|
|
textColor: Color(0xFF32A060), |
|
|
|
|
borderColor: Color(0xFF32A060), |
|
|
|
|
borderWidth: 1.w, |
|
|
|
|
radius: 26.5, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
) |
|
|
|
@ -366,5 +372,4 @@ class _GuidePage extends State<GuidePage> {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|