|
|
|
@ -51,12 +51,12 @@ class _DiscountZone extends State<DiscountZone> {
|
|
|
|
|
)), |
|
|
|
|
if(widget.coupon.length != 0) |
|
|
|
|
Container( |
|
|
|
|
height: 100, |
|
|
|
|
margin: EdgeInsets.only(top: 10), |
|
|
|
|
height: 100.h, |
|
|
|
|
margin: EdgeInsets.only(top: 10.h), |
|
|
|
|
child: ListView.builder( |
|
|
|
|
scrollDirection: Axis.horizontal, |
|
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 10), |
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 10.w), |
|
|
|
|
itemBuilder: (context, position) { |
|
|
|
|
return GestureDetector( |
|
|
|
|
onTap: (){ |
|
|
|
@ -91,7 +91,7 @@ class _DiscountZone extends State<DiscountZone> {
|
|
|
|
|
Expanded( |
|
|
|
|
flex: 2, |
|
|
|
|
child: Container( |
|
|
|
|
margin: EdgeInsets.only(top: 12,bottom: 12,left: 20,right: 27), |
|
|
|
|
margin: EdgeInsets.only(top: 12.h,bottom: 12.h,left: 20.w,right: 27.w), |
|
|
|
|
child: Column( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
@ -107,7 +107,7 @@ class _DiscountZone extends State<DiscountZone> {
|
|
|
|
|
color: Color(0xFFFFA607), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
SizedBox(height:5), |
|
|
|
|
SizedBox(height:5.w), |
|
|
|
|
(coupon.useStartTime == null && |
|
|
|
|
coupon.useEndTime == null)? |
|
|
|
|
Text( |
|
|
|
@ -135,13 +135,13 @@ class _DiscountZone extends State<DiscountZone> {
|
|
|
|
|
Expanded( |
|
|
|
|
flex: 1, |
|
|
|
|
child:Container( |
|
|
|
|
margin: EdgeInsets.only(top: 12,bottom: 12), |
|
|
|
|
margin: EdgeInsets.only(top: 12.h,bottom: 12.h), |
|
|
|
|
child: Column( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
|
Expanded(child: Container( |
|
|
|
|
padding: EdgeInsets.only(right: 5), |
|
|
|
|
padding: EdgeInsets.only(right: 5.w), |
|
|
|
|
child:discountWidget(coupon), |
|
|
|
|
)), |
|
|
|
|
], |
|
|
|
|