You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
269 lines
10 KiB
269 lines
10 KiB
import 'package:flutter/cupertino.dart'; |
|
import 'package:flutter/material.dart'; |
|
import 'package:huixiang/utils/font_weight.dart'; |
|
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|
|
|
import '../../generated/l10n.dart'; |
|
|
|
class ExclusiveCoupon extends StatefulWidget { |
|
@override |
|
State<StatefulWidget> createState() { |
|
return _ExclusiveCoupon(); |
|
} |
|
} |
|
|
|
class _ExclusiveCoupon extends State<ExclusiveCoupon> { |
|
@override |
|
Widget build(BuildContext context) { |
|
return Container( |
|
margin: EdgeInsets.only(left: 14.w, right: 14.w, bottom: 40.h), |
|
width: double.infinity, |
|
padding: EdgeInsets.only(top: 20.h,left: 20.h,bottom: 10.h,right: 20.w), |
|
decoration: BoxDecoration( |
|
borderRadius: BorderRadius.circular(6.w), |
|
color: Colors.white, |
|
boxShadow: [ |
|
BoxShadow( |
|
color: Colors.black.withAlpha(12), |
|
offset: Offset(0, 3), |
|
blurRadius: 14, |
|
spreadRadius: 0, |
|
) |
|
], |
|
), |
|
child: Column( |
|
mainAxisAlignment: MainAxisAlignment.start, |
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
children: [ |
|
Row( |
|
children: [ |
|
SizedBox(width: 7.w,), |
|
Image.asset( |
|
"assets/image/vip_title.webp", |
|
fit: BoxFit.fill, //填充剩余空间 |
|
height:13.h, |
|
width: 27.w, |
|
), |
|
SizedBox(width: 4.w,), |
|
Text( |
|
S.of(context).zhuanxiangyouhuiquan, |
|
style: TextStyle( |
|
color: Colors.black, |
|
fontSize: 15.sp, |
|
fontWeight: MyFontWeight.semi_bold, |
|
), |
|
), |
|
], |
|
), |
|
SizedBox( |
|
height: 10.h, |
|
), |
|
Container( |
|
height: 124.h, |
|
margin: EdgeInsets.only(bottom: 16.h), |
|
child: Stack( |
|
children: [ |
|
Image.asset( |
|
"assets/image/vip_shop_bj.webp", |
|
fit: BoxFit.fill, //填充剩余空间 |
|
height:double.infinity, |
|
width: double.infinity, |
|
), |
|
Container( |
|
child: Row( |
|
mainAxisAlignment: MainAxisAlignment.start, |
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
children: [ |
|
Expanded(child:Padding( |
|
padding:EdgeInsets.only(top:25.h,left: 19.w), |
|
child: Column( |
|
mainAxisAlignment: MainAxisAlignment.start, |
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
children: [ |
|
Text( |
|
"海峡姐妹饮品券", |
|
style: TextStyle( |
|
color: Color(0xff32A060), |
|
fontSize: 15.sp, |
|
fontWeight: MyFontWeight.semi_bold, |
|
), |
|
), |
|
SizedBox(height: 5.h,), |
|
Text.rich( |
|
TextSpan( |
|
children: [ |
|
TextSpan( |
|
text: "6", |
|
style: TextStyle( |
|
fontWeight: MyFontWeight.semi_bold, |
|
fontSize: 36.sp, |
|
color: Color(0xffFF7E12), |
|
), |
|
), |
|
TextSpan( |
|
text: " 折", |
|
style: TextStyle( |
|
fontSize: 24.sp, |
|
color: Color(0xffFF7E12), |
|
fontWeight: MyFontWeight.semi_bold, |
|
), |
|
), |
|
], |
|
), |
|
textDirection: TextDirection.ltr, |
|
), |
|
], |
|
),)), |
|
Image.asset( |
|
"assets/image/vip_shop_hx.webp", |
|
fit: BoxFit.fill, //填充剩余空间 |
|
height:85, |
|
width: 85, |
|
), |
|
], |
|
), |
|
) |
|
], |
|
), |
|
), |
|
Container( |
|
height: 124.h, |
|
margin: EdgeInsets.only(bottom: 16.h), |
|
child: Stack( |
|
children: [ |
|
Image.asset( |
|
"assets/image/vip_shop_bj.webp", |
|
fit: BoxFit.fill, //填充剩余空间 |
|
height:double.infinity, |
|
width: double.infinity, |
|
), |
|
Container( |
|
child: Row( |
|
mainAxisAlignment: MainAxisAlignment.start, |
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
children: [ |
|
Expanded(child:Padding( |
|
padding:EdgeInsets.only(top:25.h,left: 19.w), |
|
child: Column( |
|
mainAxisAlignment: MainAxisAlignment.start, |
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
children: [ |
|
Text( |
|
"前进麦味烘焙券", |
|
style: TextStyle( |
|
color: Color(0xff32A060), |
|
fontSize: 15.sp, |
|
fontWeight: MyFontWeight.semi_bold, |
|
), |
|
), |
|
SizedBox(height: 5.h,), |
|
Text.rich( |
|
TextSpan( |
|
children: [ |
|
TextSpan( |
|
text: "7", |
|
style: TextStyle( |
|
fontWeight: MyFontWeight.semi_bold, |
|
fontSize: 36.sp, |
|
color: Color(0xffFF7E12), |
|
), |
|
), |
|
TextSpan( |
|
text: " 折", |
|
style: TextStyle( |
|
fontSize: 24.sp, |
|
color: Color(0xffFF7E12), |
|
fontWeight: MyFontWeight.semi_bold, |
|
), |
|
), |
|
], |
|
), |
|
textDirection: TextDirection.ltr, |
|
), |
|
], |
|
),)), |
|
Image.asset( |
|
"assets/image/vip_shop_qj.webp", |
|
fit: BoxFit.fill, //填充剩余空间 |
|
height:85, |
|
width: 85, |
|
), |
|
], |
|
), |
|
) |
|
], |
|
), |
|
), |
|
Container( |
|
height: 124.h, |
|
margin: EdgeInsets.only(bottom: 22.h), |
|
child: Stack( |
|
children: [ |
|
Image.asset( |
|
"assets/image/vip_shop_bj.webp", |
|
fit: BoxFit.fill, //填充剩余空间 |
|
height:double.infinity, |
|
width: double.infinity, |
|
), |
|
Container( |
|
child: Row( |
|
mainAxisAlignment: MainAxisAlignment.start, |
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
children: [ |
|
Expanded(child:Padding( |
|
padding:EdgeInsets.only(top:25.h,left: 19.w), |
|
child: Column( |
|
mainAxisAlignment: MainAxisAlignment.start, |
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
children: [ |
|
Text( |
|
"门店火锅券", |
|
style: TextStyle( |
|
color: Color(0xff32A060), |
|
fontSize: 15.sp, |
|
fontWeight: MyFontWeight.semi_bold, |
|
), |
|
), |
|
SizedBox(height: 5.h,), |
|
Text.rich( |
|
TextSpan( |
|
children: [ |
|
TextSpan( |
|
text: "8", |
|
style: TextStyle( |
|
fontWeight: MyFontWeight.semi_bold, |
|
fontSize: 36.sp, |
|
color: Color(0xffFF7E12), |
|
), |
|
), |
|
TextSpan( |
|
text: " 折", |
|
style: TextStyle( |
|
fontSize: 24.sp, |
|
color: Color(0xffFF7E12), |
|
fontWeight: MyFontWeight.semi_bold, |
|
), |
|
), |
|
], |
|
), |
|
textDirection: TextDirection.ltr, |
|
), |
|
], |
|
),)), |
|
Image.asset( |
|
"assets/image/vip_shop_hg.webp", |
|
fit: BoxFit.fill, //填充剩余空间 |
|
height:85, |
|
width: 85, |
|
), |
|
], |
|
), |
|
) |
|
], |
|
), |
|
), |
|
], |
|
), |
|
); |
|
} |
|
}
|
|
|