|
|
|
@ -145,62 +145,6 @@ class LiveRechargePopup extends StatelessWidget { |
|
|
|
color: const Color.fromRGBO(219, 219, 219, 1), |
|
|
|
), |
|
|
|
SizedBox(height: 15.w), |
|
|
|
// 支付宝支付 |
|
|
|
Row( |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
children: [ |
|
|
|
Row( |
|
|
|
children: [ |
|
|
|
Image.asset( |
|
|
|
Assets.imagesAliPay, |
|
|
|
width: 20.w, |
|
|
|
height: 20.w, |
|
|
|
), |
|
|
|
SizedBox(width: 6.w), |
|
|
|
Text( |
|
|
|
"支付宝支付", |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 13.w, |
|
|
|
color: const Color.fromRGBO(51, 51, 51, 1), |
|
|
|
fontWeight: FontWeight.w500, |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
), |
|
|
|
Obx(() { |
|
|
|
final checked = controller.payChecked.value; |
|
|
|
return GestureDetector( |
|
|
|
onTap: () => controller.payChecked.value = true, |
|
|
|
child: Container( |
|
|
|
width: 18.w, |
|
|
|
height: 18.w, |
|
|
|
decoration: BoxDecoration( |
|
|
|
shape: BoxShape.circle, |
|
|
|
color: checked |
|
|
|
? const Color.fromRGBO(117, 98, 249, 1) |
|
|
|
: Colors.white, |
|
|
|
border: Border.all( |
|
|
|
width: 1, |
|
|
|
color: checked |
|
|
|
? const Color.fromRGBO(117, 98, 249, 1) |
|
|
|
: const Color.fromRGBO(188, 188, 188, 1), |
|
|
|
), |
|
|
|
), |
|
|
|
child: checked |
|
|
|
? Center( |
|
|
|
child: Icon( |
|
|
|
Icons.check, |
|
|
|
size: 12.w, |
|
|
|
color: Colors.white, |
|
|
|
), |
|
|
|
) |
|
|
|
: null, |
|
|
|
), |
|
|
|
); |
|
|
|
}), |
|
|
|
], |
|
|
|
), |
|
|
|
SizedBox(height: 15.w), |
|
|
|
// 微信支付 |
|
|
|
Row( |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
@ -224,33 +168,23 @@ class LiveRechargePopup extends StatelessWidget { |
|
|
|
], |
|
|
|
), |
|
|
|
Obx(() { |
|
|
|
final checked = !controller.payChecked.value; |
|
|
|
return GestureDetector( |
|
|
|
onTap: () => controller.payChecked.value = false, |
|
|
|
child: Container( |
|
|
|
width: 18.w, |
|
|
|
height: 18.w, |
|
|
|
decoration: BoxDecoration( |
|
|
|
shape: BoxShape.circle, |
|
|
|
color: checked |
|
|
|
? const Color.fromRGBO(117, 98, 249, 1) |
|
|
|
: Colors.white, |
|
|
|
border: Border.all( |
|
|
|
width: 1, |
|
|
|
color: checked |
|
|
|
? const Color.fromRGBO(117, 98, 249, 1) |
|
|
|
: const Color.fromRGBO(188, 188, 188, 1), |
|
|
|
), |
|
|
|
return Container( |
|
|
|
width: 18.w, |
|
|
|
height: 18.w, |
|
|
|
decoration: BoxDecoration( |
|
|
|
shape: BoxShape.circle, |
|
|
|
color: const Color.fromRGBO(117, 98, 249, 1), |
|
|
|
border: Border.all( |
|
|
|
width: 1, |
|
|
|
color: const Color.fromRGBO(117, 98, 249, 1), |
|
|
|
), |
|
|
|
), |
|
|
|
child: Center( |
|
|
|
child: Icon( |
|
|
|
Icons.check, |
|
|
|
size: 12.w, |
|
|
|
color: Colors.white, |
|
|
|
), |
|
|
|
child: checked |
|
|
|
? Center( |
|
|
|
child: Icon( |
|
|
|
Icons.check, |
|
|
|
size: 12.w, |
|
|
|
color: Colors.white, |
|
|
|
), |
|
|
|
) |
|
|
|
: null, |
|
|
|
), |
|
|
|
); |
|
|
|
}), |
|
|
|
|