|
|
@@ -782,43 +782,43 @@ class StorePage extends BasePage<StoreController> {
|
|
|
child: Column(
|
|
|
children: [
|
|
|
GestureDetector(
|
|
|
-
|
|
|
onTap: controller.clickPayNow,
|
|
|
child: Container(
|
|
|
alignment: Alignment.topCenter,
|
|
|
- width: 328.w,
|
|
|
- height: 56.w,
|
|
|
+ width: 328.w,
|
|
|
+ height: 56.w,
|
|
|
decoration: ShapeDecoration(
|
|
|
color: const Color(0xFFFFF587),
|
|
|
shape: RoundedRectangleBorder(
|
|
|
borderRadius: BorderRadius.circular(30.55.r),
|
|
|
),
|
|
|
),
|
|
|
- child: Container(
|
|
|
- width: 328.w,
|
|
|
- height: 54.w,
|
|
|
- decoration: ShapeDecoration(
|
|
|
- gradient: LinearGradient(
|
|
|
- begin: Alignment(0.60, -0.39),
|
|
|
- end: Alignment(0.60, 0.95),
|
|
|
- colors: [
|
|
|
- const Color(0xFFF95FAC),
|
|
|
- const Color(0xFFFD5E4D),
|
|
|
- const Color(0xFFFD5E4D),
|
|
|
- const Color(0xFFFB8A3C),
|
|
|
- ],
|
|
|
- ),
|
|
|
- shape: RoundedRectangleBorder(
|
|
|
- borderRadius: BorderRadius.circular(30.55.r),
|
|
|
+ child: Container(
|
|
|
+ width: 328.w,
|
|
|
+ height: 54.w,
|
|
|
+ decoration: ShapeDecoration(
|
|
|
+ gradient: LinearGradient(
|
|
|
+ begin: Alignment(0.60, -0.39),
|
|
|
+ end: Alignment(0.60, 0.95),
|
|
|
+ colors: [
|
|
|
+ const Color(0xFFF95FAC),
|
|
|
+ const Color(0xFFFD5E4D),
|
|
|
+ const Color(0xFFFD5E4D),
|
|
|
+ const Color(0xFFFB8A3C),
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ shape: RoundedRectangleBorder(
|
|
|
+ borderRadius: BorderRadius.circular(30.55.r),
|
|
|
+ ),
|
|
|
),
|
|
|
- ),
|
|
|
- child: Center(
|
|
|
- child: Text(
|
|
|
- StringName.storePayNow,
|
|
|
- style: Styles.getTextStyleWhiteW500(17.sp),
|
|
|
+ child: Center(
|
|
|
+ child: Text(
|
|
|
+ StringName.storePayNow,
|
|
|
+ style: Styles.getTextStyleWhiteW500(17.sp),
|
|
|
+ ),
|
|
|
),
|
|
|
),
|
|
|
- )),
|
|
|
+ ),
|
|
|
),
|
|
|
|
|
|
_buildPrivacy(),
|
|
|
@@ -827,74 +827,81 @@ class StorePage extends BasePage<StoreController> {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- Widget _buildPrivacy(){
|
|
|
+ Widget _buildPrivacy() {
|
|
|
return Row(
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
children: [
|
|
|
Obx(() {
|
|
|
return GestureDetector(
|
|
|
- behavior: HitTestBehavior.opaque,
|
|
|
- onTap: () {
|
|
|
- controller.isAgree.value = !controller.isAgree.value;
|
|
|
- },
|
|
|
- child:Padding(
|
|
|
- padding: EdgeInsets.symmetric(vertical: 10.w,horizontal: 10.w),child:
|
|
|
- controller.isAgree.value
|
|
|
- ? Assets.images.iconStoreAgreePrivacy.image(
|
|
|
- width: 16.w,
|
|
|
- height: 16.w,
|
|
|
- )
|
|
|
- : SizedBox(
|
|
|
- child: Container(
|
|
|
- padding: EdgeInsets.all(1.w),
|
|
|
- width: 16.w,
|
|
|
- height: 16.w,
|
|
|
- child: Container(
|
|
|
- decoration: BoxDecoration(
|
|
|
- shape: BoxShape.circle,
|
|
|
- border: Border.all(
|
|
|
- color: Colors.black.withAlpha(153),
|
|
|
- width: 1.w,
|
|
|
+ behavior: HitTestBehavior.opaque,
|
|
|
+ onTap: () {
|
|
|
+ controller.isAgree.value = !controller.isAgree.value;
|
|
|
+ },
|
|
|
+ child: Padding(
|
|
|
+ padding: EdgeInsets.symmetric(vertical: 10.w, horizontal: 10.w),
|
|
|
+ child:
|
|
|
+ controller.isAgree.value
|
|
|
+ ? Assets.images.iconStoreAgreePrivacy.image(
|
|
|
+ width: 16.w,
|
|
|
+ height: 16.w,
|
|
|
+ )
|
|
|
+ : SizedBox(
|
|
|
+ child: Container(
|
|
|
+ padding: EdgeInsets.all(1.w),
|
|
|
+ width: 16.w,
|
|
|
+ height: 16.w,
|
|
|
+ child: Container(
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ shape: BoxShape.circle,
|
|
|
+ border: Border.all(
|
|
|
+ color: Colors.black.withAlpha(153),
|
|
|
+ width: 1.w,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
),
|
|
|
- ),
|
|
|
- ),
|
|
|
- ),
|
|
|
- ),)
|
|
|
+ ),
|
|
|
);
|
|
|
}),
|
|
|
- Transform.translate(offset: Offset(-10.w,0),child:
|
|
|
- Text.rich(
|
|
|
- TextSpan(
|
|
|
- children: [
|
|
|
- TextSpan(
|
|
|
- text: StringName.textSpanIHaveReadAndAgree,
|
|
|
- style: TextStyle(
|
|
|
- color: Colors.black.withAlpha(153),
|
|
|
- fontSize: 10.sp,
|
|
|
- fontWeight: FontWeight.w400,
|
|
|
+ Transform.translate(
|
|
|
+ offset: Offset(-10.w, 0),
|
|
|
+ child: Text.rich(
|
|
|
+ TextSpan(
|
|
|
+ children: [
|
|
|
+ TextSpan(
|
|
|
+ text: StringName.textSpanIHaveReadAndAgree,
|
|
|
+ style: TextStyle(
|
|
|
+ color: Colors.black.withAlpha(153),
|
|
|
+ fontSize: 10.sp,
|
|
|
+ fontWeight: FontWeight.w400,
|
|
|
+ ),
|
|
|
),
|
|
|
- ),
|
|
|
- ClickTextSpan(
|
|
|
- text: StringName.textSpanPrivacyPolicy,
|
|
|
- url: WebUrl.privacyPolicy,
|
|
|
- ),
|
|
|
-
|
|
|
- TextSpan(
|
|
|
- text: StringName.textSpanAnd,
|
|
|
- style: TextStyle(
|
|
|
- color: Colors.black.withAlpha(153),
|
|
|
- fontSize: 10.sp,
|
|
|
- fontWeight: FontWeight.w400,
|
|
|
+ ClickTextSpan(
|
|
|
+ text: StringName.textSpanPrivacyPolicy,
|
|
|
+ url: WebUrl.privacyPolicy,
|
|
|
),
|
|
|
- ),
|
|
|
|
|
|
- ClickTextSpan(
|
|
|
- text: StringName.textSpanServiceTerms,
|
|
|
- url: WebUrl.serviceAgreement,
|
|
|
- ),
|
|
|
- ],
|
|
|
+ ClickTextSpan(
|
|
|
+ text: StringName.textSpanServiceTerms,
|
|
|
+ url: WebUrl.serviceAgreement,
|
|
|
+ ),
|
|
|
+ TextSpan(
|
|
|
+ text: StringName.textSpanAnd,
|
|
|
+ style: TextStyle(
|
|
|
+ color: Colors.black.withAlpha(153),
|
|
|
+ fontSize: 10.sp,
|
|
|
+ fontWeight: FontWeight.w400,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ClickTextSpan(
|
|
|
+ text: StringName.textSpanMembershipAgreement,
|
|
|
+ url: WebUrl.memberServiceAgreement,
|
|
|
+ ),
|
|
|
+ ],
|
|
|
+ ),
|
|
|
),
|
|
|
- ),)
|
|
|
+ ),
|
|
|
],
|
|
|
);
|
|
|
}
|