|
|
@ -7,11 +7,13 @@ import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|
|
|
class ActivityCouponRemarks extends StatefulWidget { |
|
|
|
class ActivityCouponRemarks extends StatefulWidget { |
|
|
|
final Function() couponCart; |
|
|
|
final Function() couponCart; |
|
|
|
final Function() activityCart; |
|
|
|
final Function() activityCart; |
|
|
|
|
|
|
|
final Function() editRemark; |
|
|
|
|
|
|
|
|
|
|
|
final String coupons; |
|
|
|
final String coupons; |
|
|
|
final String promotions; |
|
|
|
final String promotions; |
|
|
|
final SettleOrderInfo settleOrderInfo; |
|
|
|
final SettleOrderInfo settleOrderInfo; |
|
|
|
final int couponCount; |
|
|
|
final int couponCount; |
|
|
|
|
|
|
|
final String remark; |
|
|
|
|
|
|
|
|
|
|
|
ActivityCouponRemarks( |
|
|
|
ActivityCouponRemarks( |
|
|
|
this.couponCart, |
|
|
|
this.couponCart, |
|
|
@ -20,6 +22,8 @@ class ActivityCouponRemarks extends StatefulWidget { |
|
|
|
this.coupons, |
|
|
|
this.coupons, |
|
|
|
this.promotions, |
|
|
|
this.promotions, |
|
|
|
this.couponCount, |
|
|
|
this.couponCount, |
|
|
|
|
|
|
|
this.remark, |
|
|
|
|
|
|
|
this.editRemark |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
@ -56,118 +60,121 @@ class _ActivityCouponRemarks extends State<ActivityCouponRemarks> { |
|
|
|
top: 14, |
|
|
|
top: 14, |
|
|
|
bottom: 14, |
|
|
|
bottom: 14, |
|
|
|
), |
|
|
|
), |
|
|
|
child: Column( |
|
|
|
child:Column( |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly, |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
InkWell( |
|
|
|
InkWell( |
|
|
|
onTap: () { |
|
|
|
onTap: () { |
|
|
|
widget.activityCart(); |
|
|
|
widget.activityCart(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
child: Row( |
|
|
|
child: Row( |
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Expanded( |
|
|
|
Expanded( |
|
|
|
flex: 1, |
|
|
|
flex: 1, |
|
|
|
child: Text( |
|
|
|
child: Text( |
|
|
|
S.of(context).huodong, |
|
|
|
S.of(context).huodong, |
|
|
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
|
|
|
color: Color(0xFF353535), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
Text( |
|
|
|
|
|
|
|
activityText(), |
|
|
|
|
|
|
|
textAlign: TextAlign.end, |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
|
|
|
fontSize: 14.sp, |
|
|
|
fontSize: 14.sp, |
|
|
|
color: Color(0xFF353535), |
|
|
|
color: Color(0xFF32A060), |
|
|
|
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
Icon( |
|
|
|
Text( |
|
|
|
Icons.keyboard_arrow_right, |
|
|
|
activityText(), |
|
|
|
size: 16, |
|
|
|
textAlign: TextAlign.end, |
|
|
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
|
|
|
color: Color(0xFF32A060), |
|
|
|
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
Icon( |
|
|
|
), |
|
|
|
Icons.keyboard_arrow_right, |
|
|
|
|
|
|
|
size: 16, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
|
height: 13, |
|
|
|
height: 13, |
|
|
|
), |
|
|
|
), |
|
|
|
InkWell( |
|
|
|
InkWell( |
|
|
|
onTap: () { |
|
|
|
onTap: () { |
|
|
|
widget.couponCart(); |
|
|
|
widget.couponCart(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
child: Row( |
|
|
|
child: Row( |
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Expanded( |
|
|
|
Expanded( |
|
|
|
flex: 1, |
|
|
|
flex: 1, |
|
|
|
child: Text( |
|
|
|
child: Text( |
|
|
|
S.of(context).youhuiquan, |
|
|
|
S.of(context).youhuiquan, |
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
|
|
|
color: Color(0xFF353535), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
Text( |
|
|
|
|
|
|
|
couponText(), |
|
|
|
|
|
|
|
textAlign: TextAlign.end, |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
|
|
|
fontSize: 14.sp, |
|
|
|
fontSize: 14.sp, |
|
|
|
color: Color(0xFF353535), |
|
|
|
color: Color(0xFF32A060), |
|
|
|
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
Icon( |
|
|
|
Text( |
|
|
|
Icons.keyboard_arrow_right, |
|
|
|
couponText(), |
|
|
|
size: 16, |
|
|
|
textAlign: TextAlign.end, |
|
|
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
|
|
|
color: Color(0xFF32A060), |
|
|
|
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
Icon( |
|
|
|
), |
|
|
|
Icons.keyboard_arrow_right, |
|
|
|
|
|
|
|
size: 16, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
|
height: 13, |
|
|
|
height: 13, |
|
|
|
), |
|
|
|
), |
|
|
|
InkWell( |
|
|
|
Row( |
|
|
|
onTap: (){ |
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
widget.editRemark(); |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
}, |
|
|
|
children: [ |
|
|
|
child: |
|
|
|
Expanded( |
|
|
|
Row( |
|
|
|
flex: 1, |
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
child: Text( |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
S.of(context).beizhu, |
|
|
|
children: [ |
|
|
|
style: TextStyle( |
|
|
|
Text( |
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
S.of(context).beizhu, |
|
|
|
fontSize: 14.sp, |
|
|
|
style: TextStyle( |
|
|
|
color: Color(0xFF353535), |
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
|
|
|
color: Color(0xFF353535), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
Expanded(child:Text( |
|
|
|
|
|
|
|
widget.remark, |
|
|
|
|
|
|
|
textAlign: TextAlign.end, |
|
|
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
|
|
|
color: Color(0xFF353535), |
|
|
|
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
),), |
|
|
|
|
|
|
|
Icon( |
|
|
|
|
|
|
|
Icons.keyboard_arrow_right, |
|
|
|
|
|
|
|
size: 16, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
Text( |
|
|
|
), |
|
|
|
"口味、面包硬度等", |
|
|
|
], |
|
|
|
textAlign: TextAlign.end, |
|
|
|
), |
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
|
|
|
color: Color(0xFF353535), |
|
|
|
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
Icon( |
|
|
|
|
|
|
|
Icons.keyboard_arrow_right, |
|
|
|
|
|
|
|
size: 16, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|