|
|
@ -203,202 +203,192 @@ class _StoreOrderPage extends State<StoreOrderPage> |
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
Widget build(BuildContext context) { |
|
|
|
Widget build(BuildContext context) { |
|
|
|
return WillPopScope( |
|
|
|
return Container( |
|
|
|
onWillPop: () async { |
|
|
|
color: Colors.white, |
|
|
|
if (dialogShowing) { |
|
|
|
child: Stack( |
|
|
|
debugPrint("ssssasdadsasdadasd"); |
|
|
|
children: [ |
|
|
|
SmartDialog.dismiss(); |
|
|
|
Positioned( |
|
|
|
return false; |
|
|
|
left: 0, |
|
|
|
} else { |
|
|
|
right: 0, |
|
|
|
return true; |
|
|
|
top: 0, |
|
|
|
} |
|
|
|
bottom: 54.h, |
|
|
|
}, |
|
|
|
child: NestedScrollView( |
|
|
|
child: Container( |
|
|
|
controller: controller, |
|
|
|
color: Colors.white, |
|
|
|
dragStartBehavior: DragStartBehavior.start, |
|
|
|
child: Stack( |
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
children: [ |
|
|
|
headerSliverBuilder: (BuildContext context, bool innerScrolled) { |
|
|
|
Positioned( |
|
|
|
return [ |
|
|
|
left: 0, |
|
|
|
SliverOverlapAbsorber( |
|
|
|
right: 0, |
|
|
|
handle: NestedScrollView.sliverOverlapAbsorberHandleFor( |
|
|
|
top: 0, |
|
|
|
context), |
|
|
|
bottom: 54.h, |
|
|
|
sliver: SliverAppBar( |
|
|
|
child: NestedScrollView( |
|
|
|
expandedHeight: (storeInfo != null && |
|
|
|
controller: controller, |
|
|
|
storeInfo.couponVOList != null) |
|
|
|
dragStartBehavior: DragStartBehavior.start, |
|
|
|
? 400.h |
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
: 395.h, |
|
|
|
headerSliverBuilder: (BuildContext context, bool innerScrolled) { |
|
|
|
floating: false, |
|
|
|
return [ |
|
|
|
snap: false, |
|
|
|
SliverOverlapAbsorber( |
|
|
|
pinned: true, |
|
|
|
handle: NestedScrollView.sliverOverlapAbsorberHandleFor( |
|
|
|
stretch: false, |
|
|
|
context), |
|
|
|
brightness: Brightness.light, |
|
|
|
sliver: SliverAppBar( |
|
|
|
leading: GestureDetector( |
|
|
|
expandedHeight: (storeInfo != null && |
|
|
|
behavior: HitTestBehavior.opaque, |
|
|
|
storeInfo.couponVOList != null) |
|
|
|
onTap: () { |
|
|
|
? 400.h |
|
|
|
Navigator.of(context).pop(); |
|
|
|
: 395.h, |
|
|
|
}, |
|
|
|
floating: false, |
|
|
|
child: Container( |
|
|
|
snap: false, |
|
|
|
width: double.infinity, |
|
|
|
pinned: true, |
|
|
|
height: double.infinity, |
|
|
|
stretch: false, |
|
|
|
color: Colors.transparent, |
|
|
|
brightness: Brightness.light, |
|
|
|
alignment: Alignment.centerRight, |
|
|
|
leading: GestureDetector( |
|
|
|
margin: EdgeInsets.only(left: 10.w), |
|
|
|
behavior: HitTestBehavior.opaque, |
|
|
|
padding: EdgeInsets.all(10.h), |
|
|
|
onTap: () { |
|
|
|
child: Icon( |
|
|
|
Navigator.of(context).pop(); |
|
|
|
Icons.arrow_back_ios, |
|
|
|
}, |
|
|
|
color: Colors.black, |
|
|
|
child: Container( |
|
|
|
size: 24, |
|
|
|
width: double.infinity, |
|
|
|
|
|
|
|
height: double.infinity, |
|
|
|
|
|
|
|
color: Colors.transparent, |
|
|
|
|
|
|
|
alignment: Alignment.centerRight, |
|
|
|
|
|
|
|
margin: EdgeInsets.only(left: 10.w), |
|
|
|
|
|
|
|
padding: EdgeInsets.all(10.h), |
|
|
|
|
|
|
|
child: Icon( |
|
|
|
|
|
|
|
Icons.arrow_back_ios, |
|
|
|
|
|
|
|
color: Colors.black, |
|
|
|
|
|
|
|
size: 24, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
flexibleSpace: FlexibleSpaceBar( |
|
|
|
), |
|
|
|
title: Title(controller, |
|
|
|
flexibleSpace: FlexibleSpaceBar( |
|
|
|
storeInfo != null ? storeInfo.storeName : ''), |
|
|
|
title: Title(controller, |
|
|
|
collapseMode: CollapseMode.pin, |
|
|
|
storeInfo != null ? storeInfo.storeName : ''), |
|
|
|
stretchModes: [ |
|
|
|
collapseMode: CollapseMode.pin, |
|
|
|
StretchMode.zoomBackground, |
|
|
|
stretchModes: [ |
|
|
|
StretchMode.fadeTitle, |
|
|
|
StretchMode.zoomBackground, |
|
|
|
StretchMode.blurBackground, |
|
|
|
StretchMode.fadeTitle, |
|
|
|
], |
|
|
|
StretchMode.blurBackground, |
|
|
|
background: Container( |
|
|
|
], |
|
|
|
decoration: BoxDecoration( |
|
|
|
background: Container( |
|
|
|
color: Colors.white, |
|
|
|
decoration: BoxDecoration( |
|
|
|
borderRadius: BorderRadius.circular(8.w), |
|
|
|
color: Colors.white, |
|
|
|
), |
|
|
|
borderRadius: BorderRadius.circular(8.w), |
|
|
|
child: Stack( |
|
|
|
), |
|
|
|
children: [ |
|
|
|
child: Stack( |
|
|
|
Positioned( |
|
|
|
children: [ |
|
|
|
child: Column( |
|
|
|
Positioned( |
|
|
|
children: [ |
|
|
|
child: Column( |
|
|
|
buildSwiper(), |
|
|
|
children: [ |
|
|
|
Expanded( |
|
|
|
buildSwiper(), |
|
|
|
child: Container( |
|
|
|
Expanded( |
|
|
|
color: Colors.transparent, |
|
|
|
child: Container( |
|
|
|
), |
|
|
|
color: Colors.transparent, |
|
|
|
flex: 1, |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
flex: 1, |
|
|
|
), |
|
|
|
), |
|
|
|
top: 0, |
|
|
|
], |
|
|
|
bottom: 0, |
|
|
|
|
|
|
|
left: 0, |
|
|
|
|
|
|
|
right: 0, |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
Positioned( |
|
|
|
top: 0, |
|
|
|
child: Container( |
|
|
|
bottom: 0, |
|
|
|
decoration: BoxDecoration( |
|
|
|
left: 0, |
|
|
|
|
|
|
|
right: 0, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
Positioned( |
|
|
|
|
|
|
|
child: Container( |
|
|
|
|
|
|
|
decoration: BoxDecoration( |
|
|
|
color: Colors.white, |
|
|
|
color: Colors.white, |
|
|
|
borderRadius: BorderRadius.circular(8.w), |
|
|
|
borderRadius: BorderRadius.circular(8.w), |
|
|
|
), |
|
|
|
), |
|
|
|
child: Column( |
|
|
|
child: Column( |
|
|
|
mainAxisAlignment: MainAxisAlignment.start, |
|
|
|
mainAxisAlignment: MainAxisAlignment.start, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
///门店信息 |
|
|
|
///门店信息 |
|
|
|
StoreInfoView(storeInfo), |
|
|
|
StoreInfoView(storeInfo), |
|
|
|
// Padding(padding:EdgeInsets.only(left: 14.w), |
|
|
|
// Padding(padding:EdgeInsets.only(left: 14.w), |
|
|
|
// child: Text( |
|
|
|
// child: Text( |
|
|
|
// S.of(context).diandan, |
|
|
|
// S.of(context).diandan, |
|
|
|
// style: TextStyle( |
|
|
|
// style: TextStyle( |
|
|
|
// fontWeight: MyFontWeight.bold, |
|
|
|
// fontWeight: MyFontWeight.bold, |
|
|
|
// fontSize: 15.sp, |
|
|
|
// fontSize: 15.sp, |
|
|
|
// color: Color(0xFF000000), |
|
|
|
// color: Color(0xFF000000), |
|
|
|
// ), |
|
|
|
// ), |
|
|
|
// ),), |
|
|
|
// ),), |
|
|
|
// Container( |
|
|
|
// Container( |
|
|
|
// width:22.w, |
|
|
|
// width:22.w, |
|
|
|
// height: 3.h, |
|
|
|
// height: 3.h, |
|
|
|
// color: Color(0xFF32A060), |
|
|
|
// color: Color(0xFF32A060), |
|
|
|
// margin: EdgeInsets.only(top: 5.h,left: 14.w), |
|
|
|
// margin: EdgeInsets.only(top: 5.h,left: 14.w), |
|
|
|
// ), |
|
|
|
// ), |
|
|
|
// ///门店对应优惠券 |
|
|
|
// ///门店对应优惠券 |
|
|
|
// if (storeInfo != null && |
|
|
|
// if (storeInfo != null && |
|
|
|
// storeInfo.couponVOList != null) |
|
|
|
// storeInfo.couponVOList != null) |
|
|
|
// UnionCoupon( |
|
|
|
// UnionCoupon( |
|
|
|
// storeInfo, |
|
|
|
// storeInfo, |
|
|
|
// _receiveCoupon, |
|
|
|
// _receiveCoupon, |
|
|
|
// coupon: true, |
|
|
|
// coupon: true, |
|
|
|
// ), |
|
|
|
// ), |
|
|
|
// |
|
|
|
// |
|
|
|
// if (storeInfo == null || |
|
|
|
// if (storeInfo == null || |
|
|
|
// storeInfo.couponVOList == null) |
|
|
|
// storeInfo.couponVOList == null) |
|
|
|
// SizedBox( |
|
|
|
// SizedBox( |
|
|
|
// height: 8, |
|
|
|
// height: 8, |
|
|
|
// ), |
|
|
|
// ), |
|
|
|
// |
|
|
|
// |
|
|
|
// ///门店对应VIP信息 |
|
|
|
// ///门店对应VIP信息 |
|
|
|
// Vip(storeInfo, () {}, false), |
|
|
|
// Vip(storeInfo, () {}, false), |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
top:233.h, |
|
|
|
|
|
|
|
bottom: 0, |
|
|
|
|
|
|
|
left: 0, |
|
|
|
|
|
|
|
right: 0, |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
top:233.h, |
|
|
|
), |
|
|
|
bottom: 0, |
|
|
|
|
|
|
|
left: 0, |
|
|
|
|
|
|
|
right: 0, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
backgroundColor: Color(0x33FAFAFA), |
|
|
|
), |
|
|
|
centerTitle: false, |
|
|
|
backgroundColor: Color(0x33FAFAFA), |
|
|
|
elevation: 0, |
|
|
|
centerTitle: false, |
|
|
|
bottom: PreferredSize( |
|
|
|
elevation: 0, |
|
|
|
preferredSize: Size( |
|
|
|
bottom: PreferredSize( |
|
|
|
MediaQuery.of(context).size.width, |
|
|
|
preferredSize: Size( |
|
|
|
38.h, |
|
|
|
MediaQuery.of(context).size.width, |
|
|
|
), |
|
|
|
38.h, |
|
|
|
child: Container( |
|
|
|
), |
|
|
|
padding: EdgeInsets.symmetric(horizontal: 10.w), |
|
|
|
child: Container( |
|
|
|
width: MediaQuery.of(context).size.width, |
|
|
|
padding: EdgeInsets.symmetric(horizontal: 10.w), |
|
|
|
child: TabBar( |
|
|
|
width: MediaQuery.of(context).size.width, |
|
|
|
controller: tabcontroller, |
|
|
|
child: TabBar( |
|
|
|
automaticIndicatorColorAdjustment: true, |
|
|
|
controller: tabcontroller, |
|
|
|
isScrollable: true, |
|
|
|
automaticIndicatorColorAdjustment: true, |
|
|
|
indicatorWeight: 3, |
|
|
|
isScrollable: true, |
|
|
|
indicatorColor: Color(0xFF32A060), |
|
|
|
indicatorWeight: 3, |
|
|
|
labelPadding: EdgeInsets.only( |
|
|
|
indicatorColor: Color(0xFF32A060), |
|
|
|
left: 8.w, |
|
|
|
labelPadding: EdgeInsets.only( |
|
|
|
right: 8.w, |
|
|
|
left: 8.w, |
|
|
|
), |
|
|
|
right: 8.w, |
|
|
|
indicatorSize: TabBarIndicatorSize.label, |
|
|
|
), |
|
|
|
unselectedLabelStyle: TextStyle( |
|
|
|
indicatorSize: TabBarIndicatorSize.label, |
|
|
|
fontSize: 15.sp, |
|
|
|
unselectedLabelStyle: TextStyle( |
|
|
|
fontWeight: FontWeight.w400, |
|
|
|
fontSize: 15.sp, |
|
|
|
), |
|
|
|
fontWeight: FontWeight.w400, |
|
|
|
labelStyle: TextStyle( |
|
|
|
|
|
|
|
color: Colors.black, |
|
|
|
|
|
|
|
fontSize: 18.sp, |
|
|
|
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
labelColor: Colors.black, |
|
|
|
|
|
|
|
tabs: [ |
|
|
|
|
|
|
|
MyTab(text: S.of(context).diandan), |
|
|
|
|
|
|
|
// MyTab(text: ""), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
labelStyle: TextStyle( |
|
|
|
|
|
|
|
color: Colors.black, |
|
|
|
|
|
|
|
fontSize: 18.sp, |
|
|
|
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
labelColor: Colors.black, |
|
|
|
|
|
|
|
tabs: [ |
|
|
|
|
|
|
|
MyTab(text: S.of(context).diandan), |
|
|
|
|
|
|
|
// MyTab(text: ""), |
|
|
|
|
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
]; |
|
|
|
), |
|
|
|
}, |
|
|
|
]; |
|
|
|
body: |
|
|
|
}, |
|
|
|
///点餐 |
|
|
|
body: |
|
|
|
TabBarView( |
|
|
|
///点餐 |
|
|
|
physics: NeverScrollableScrollPhysics(), |
|
|
|
TabBarView( |
|
|
|
children: [ |
|
|
|
physics: NeverScrollableScrollPhysics(), |
|
|
|
///点餐 |
|
|
|
children: [ |
|
|
|
StoreOrderListPage( |
|
|
|
///点餐 |
|
|
|
|
|
|
|
StoreOrderListPage( |
|
|
|
widget.arguments, |
|
|
|
widget.arguments, |
|
|
|
activitys, |
|
|
|
activitys, |
|
|
|
storeInfo, |
|
|
|
storeInfo, |
|
|
@ -407,23 +397,23 @@ class _StoreOrderPage extends State<StoreOrderPage> |
|
|
|
minToken, |
|
|
|
minToken, |
|
|
|
tenant, |
|
|
|
tenant, |
|
|
|
_queryMiNiDetail, |
|
|
|
_queryMiNiDetail, |
|
|
|
(){ |
|
|
|
(){ |
|
|
|
queryShopCar().then((value) { |
|
|
|
queryShopCar().then((value) { |
|
|
|
this.shopCarGoods = value; |
|
|
|
this.shopCarGoods = value; |
|
|
|
setState(() {}); |
|
|
|
setState(() {}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
|
|
|
|
///星店活动, |
|
|
|
///星店活动, |
|
|
|
// StoreActivity( |
|
|
|
// StoreActivity( |
|
|
|
// widget.arguments, |
|
|
|
// widget.arguments, |
|
|
|
// activitys, |
|
|
|
// activitys, |
|
|
|
// ), |
|
|
|
// ), |
|
|
|
], |
|
|
|
], |
|
|
|
controller: tabcontroller, |
|
|
|
controller: tabcontroller, |
|
|
|
), |
|
|
|
), |
|
|
|
), /*SmartRefresher( |
|
|
|
), /*SmartRefresher( |
|
|
|
controller: refreshController = |
|
|
|
controller: refreshController = |
|
|
|
RefreshController(initialRefresh: false), |
|
|
|
RefreshController(initialRefresh: false), |
|
|
|
enablePullDown: true, |
|
|
|
enablePullDown: true, |
|
|
@ -435,82 +425,82 @@ class _StoreOrderPage extends State<StoreOrderPage> |
|
|
|
}, |
|
|
|
}, |
|
|
|
child: |
|
|
|
child: |
|
|
|
),*/ |
|
|
|
),*/ |
|
|
|
), |
|
|
|
), |
|
|
|
// if(count() != 0) |
|
|
|
// if(count() != 0) |
|
|
|
Positioned( |
|
|
|
Positioned( |
|
|
|
bottom: 30, |
|
|
|
bottom: 30, |
|
|
|
left: 0, |
|
|
|
left: 0, |
|
|
|
right: 0, |
|
|
|
right: 0, |
|
|
|
child: Stack( |
|
|
|
child: Stack( |
|
|
|
alignment: Alignment.bottomLeft, |
|
|
|
alignment: Alignment.bottomLeft, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Container( |
|
|
|
Container( |
|
|
|
margin: EdgeInsets.symmetric(horizontal: 14), |
|
|
|
margin: EdgeInsets.symmetric(horizontal: 14), |
|
|
|
height: 45.h, |
|
|
|
height: 45.h, |
|
|
|
// color: Color(0xFFFAFAFA), |
|
|
|
// color: Color(0xFFFAFAFA), |
|
|
|
decoration: BoxDecoration( |
|
|
|
decoration: BoxDecoration( |
|
|
|
color: Color(0xFF383A38), |
|
|
|
color: Color(0xFF383A38), |
|
|
|
borderRadius: BorderRadius.circular(100), |
|
|
|
borderRadius: BorderRadius.circular(100), |
|
|
|
), |
|
|
|
|
|
|
|
child: Row( |
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround, |
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
SizedBox(width:45.w,), |
|
|
|
|
|
|
|
Text.rich( |
|
|
|
|
|
|
|
TextSpan(children: [ |
|
|
|
|
|
|
|
TextSpan( |
|
|
|
|
|
|
|
text: "¥ ", |
|
|
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
|
|
|
color: Color(0xFFFFFFFF), |
|
|
|
|
|
|
|
fontWeight: MyFontWeight.bold), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
TextSpan( |
|
|
|
|
|
|
|
text: |
|
|
|
|
|
|
|
shopCarGoods != null ? shopCarGoods.cartSum : "0.0", |
|
|
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
fontSize: 20.sp, |
|
|
|
|
|
|
|
color: Color(0xFFFFFFFF), |
|
|
|
|
|
|
|
fontWeight: MyFontWeight.semi_bold), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
]), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
Spacer(), |
|
|
|
|
|
|
|
GestureDetector( |
|
|
|
|
|
|
|
onTap: () { |
|
|
|
|
|
|
|
toDownOrder(); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
child: RoundButton( |
|
|
|
|
|
|
|
width: 103.w, |
|
|
|
|
|
|
|
height: 54.h, |
|
|
|
|
|
|
|
text: S.current.jiesuan, |
|
|
|
|
|
|
|
textColor: Colors.white, |
|
|
|
|
|
|
|
fontWeight: MyFontWeight.bold, |
|
|
|
|
|
|
|
backgroup: Color(0xFF32A060), |
|
|
|
|
|
|
|
radius: 100, |
|
|
|
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
|
|
|
padding: EdgeInsets.symmetric(vertical: 5.h), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
Stack( |
|
|
|
child: Row( |
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround, |
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
InkWell( |
|
|
|
SizedBox(width:45.w,), |
|
|
|
|
|
|
|
Text.rich( |
|
|
|
|
|
|
|
TextSpan(children: [ |
|
|
|
|
|
|
|
TextSpan( |
|
|
|
|
|
|
|
text: "¥ ", |
|
|
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
|
|
|
color: Color(0xFFFFFFFF), |
|
|
|
|
|
|
|
fontWeight: MyFontWeight.bold), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
TextSpan( |
|
|
|
|
|
|
|
text: |
|
|
|
|
|
|
|
shopCarGoods != null ? shopCarGoods.cartSum : "0.0", |
|
|
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
fontSize: 20.sp, |
|
|
|
|
|
|
|
color: Color(0xFFFFFFFF), |
|
|
|
|
|
|
|
fontWeight: MyFontWeight.semi_bold), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
]), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
Spacer(), |
|
|
|
|
|
|
|
GestureDetector( |
|
|
|
onTap: () { |
|
|
|
onTap: () { |
|
|
|
if(count() != 0) |
|
|
|
toDownOrder(); |
|
|
|
showShoppingCart(); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
child: Image.asset( |
|
|
|
child: RoundButton( |
|
|
|
"assets/image/shopping_bag.webp", |
|
|
|
width: 103.w, |
|
|
|
width: 66, |
|
|
|
height: 54.h, |
|
|
|
height: 66, |
|
|
|
text: S.current.jiesuan, |
|
|
|
fit: BoxFit.fitWidth, |
|
|
|
textColor: Colors.white, |
|
|
|
|
|
|
|
fontWeight: MyFontWeight.bold, |
|
|
|
|
|
|
|
backgroup: Color(0xFF32A060), |
|
|
|
|
|
|
|
radius: 100, |
|
|
|
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
|
|
|
padding: EdgeInsets.symmetric(vertical: 5.h), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
if(count() != 0) |
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
Stack( |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
InkWell( |
|
|
|
|
|
|
|
onTap: () { |
|
|
|
|
|
|
|
if(count() != 0) |
|
|
|
|
|
|
|
showShoppingCart(); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
child: Image.asset( |
|
|
|
|
|
|
|
"assets/image/shopping_bag.webp", |
|
|
|
|
|
|
|
width: 66, |
|
|
|
|
|
|
|
height: 66, |
|
|
|
|
|
|
|
fit: BoxFit.fitWidth, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
if(count() != 0) |
|
|
|
Positioned( |
|
|
|
Positioned( |
|
|
|
right: 5, |
|
|
|
right: 5, |
|
|
|
// top: 14, |
|
|
|
// top: 14, |
|
|
@ -525,15 +515,14 @@ class _StoreOrderPage extends State<StoreOrderPage> |
|
|
|
radius: 100, |
|
|
|
radius: 100, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
///领取优惠券 |
|
|
|
///领取优惠券 |
|
|
|