|
|
|
@ -19,7 +19,7 @@ class _OrderPaySelected extends State<OrderPaySelected> {
|
|
|
|
|
builder: (BuildContext context, StateSetter setState) { |
|
|
|
|
return Container( |
|
|
|
|
width: double.infinity, |
|
|
|
|
height: 200, |
|
|
|
|
height: 250.h, |
|
|
|
|
padding: EdgeInsets.only( |
|
|
|
|
left: 16.w, |
|
|
|
|
right: 16.w, |
|
|
|
@ -35,11 +35,13 @@ class _OrderPaySelected extends State<OrderPaySelected> {
|
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
color: Colors.white, |
|
|
|
|
borderRadius: BorderRadius.circular(8), |
|
|
|
|
borderRadius: BorderRadius.only( |
|
|
|
|
topLeft: Radius.circular(8), |
|
|
|
|
topRight: Radius.circular(8),), |
|
|
|
|
), |
|
|
|
|
child: Column( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
|
Padding( |
|
|
|
|
padding: EdgeInsets.only(bottom: 16.h), |
|
|
|
@ -54,19 +56,27 @@ class _OrderPaySelected extends State<OrderPaySelected> {
|
|
|
|
|
), |
|
|
|
|
GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
Navigator.of(context).pop(4); |
|
|
|
|
// Navigator.of(context).pop(4); |
|
|
|
|
setState(() { |
|
|
|
|
checkIndex = 1; |
|
|
|
|
payIndex = 4; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
child: Row( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
children: [ |
|
|
|
|
Text( |
|
|
|
|
S.of(context).pingtaiyue, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
color: Color(0xff353535), |
|
|
|
|
fontWeight: MyFontWeight.semi_bold,), |
|
|
|
|
), |
|
|
|
|
Image.asset("assets/image/ping_tai.webp"), |
|
|
|
|
Expanded(child: Padding( |
|
|
|
|
padding: EdgeInsets.only(left: 8.w), |
|
|
|
|
child: Text( |
|
|
|
|
S.of(context).pingtaiyue, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
color: Color(0xff353535), |
|
|
|
|
fontWeight: MyFontWeight.semi_bold,), |
|
|
|
|
), |
|
|
|
|
),), |
|
|
|
|
checkView(1), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
@ -76,20 +86,29 @@ class _OrderPaySelected extends State<OrderPaySelected> {
|
|
|
|
|
), |
|
|
|
|
GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
Navigator.of(context).pop(3); |
|
|
|
|
// Navigator.of(context).pop(3); |
|
|
|
|
setState(() { |
|
|
|
|
checkIndex = 2; |
|
|
|
|
payIndex = 3; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
child: Row( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
children: [ |
|
|
|
|
Text( |
|
|
|
|
S.of(context).dianpuyue, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
color: Color(0xff353535), |
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
Image.asset("assets/image/dian_pu.webp"), |
|
|
|
|
Expanded(child: Padding( |
|
|
|
|
padding: EdgeInsets.only(left: 8.w), |
|
|
|
|
child:Text( |
|
|
|
|
S.of(context).dianpuyue, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
color: Color(0xff353535), |
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
),), |
|
|
|
|
checkView(2), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
@ -99,14 +118,18 @@ class _OrderPaySelected extends State<OrderPaySelected> {
|
|
|
|
|
), |
|
|
|
|
GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
Navigator.of(context).pop(1); |
|
|
|
|
// Navigator.of(context).pop(1); |
|
|
|
|
setState(() { |
|
|
|
|
checkIndex = 3; |
|
|
|
|
payIndex = 1; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
child: Row( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
children: [ |
|
|
|
|
Image.asset("assets/image/icon_we_chat.webp"), |
|
|
|
|
Padding( |
|
|
|
|
Expanded(child: Padding( |
|
|
|
|
padding: EdgeInsets.only(left: 8.w), |
|
|
|
|
child: Text( |
|
|
|
|
S.of(context).weixinzhifu, |
|
|
|
@ -116,11 +139,35 @@ class _OrderPaySelected extends State<OrderPaySelected> {
|
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
),), |
|
|
|
|
checkView(3), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
GestureDetector( |
|
|
|
|
onTap: (){ |
|
|
|
|
Navigator.of(context).pop(payIndex); |
|
|
|
|
}, |
|
|
|
|
child: Container( |
|
|
|
|
width: double.infinity, |
|
|
|
|
height: 34.h, |
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
margin: EdgeInsets.only(top: 26.h), |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
color: Color(0xFF32A060), |
|
|
|
|
borderRadius: BorderRadius.circular(6), |
|
|
|
|
), |
|
|
|
|
child: Text( |
|
|
|
|
S.of(context).queren, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
color: Colors.white, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
@ -128,15 +175,17 @@ class _OrderPaySelected extends State<OrderPaySelected> {
|
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var checkIndex = 3; |
|
|
|
|
int payIndex = 1; |
|
|
|
|
|
|
|
|
|
Widget checkView(var index) { |
|
|
|
|
return Container( |
|
|
|
|
padding: EdgeInsets.only(left: 16.w), |
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
child: Image.asset( |
|
|
|
|
/*checkIndex != index |
|
|
|
|
? */"assets/image/icon_radio_unselected.webp", |
|
|
|
|
// : "assets/image/icon_radio_selected.webp", |
|
|
|
|
checkIndex != index |
|
|
|
|
? "assets/image/icon_radio_unselected.webp" |
|
|
|
|
: "assets/image/icon_radio_selected.webp", |
|
|
|
|
width: 15.w, |
|
|
|
|
height: 15.h, |
|
|
|
|
), |
|
|
|
|