|
|
@@ -782,10 +782,21 @@ class StorePage extends BasePage<StoreController> {
|
|
|
child: Column(
|
|
|
children: [
|
|
|
GestureDetector(
|
|
|
+
|
|
|
onTap: controller.clickPayNow,
|
|
|
child: Container(
|
|
|
+ alignment: Alignment.topCenter,
|
|
|
+ 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.h,
|
|
|
+ height: 54.w,
|
|
|
decoration: ShapeDecoration(
|
|
|
gradient: LinearGradient(
|
|
|
begin: Alignment(0.60, -0.39),
|
|
|
@@ -807,78 +818,84 @@ class StorePage extends BasePage<StoreController> {
|
|
|
style: Styles.getTextStyleWhiteW500(17.sp),
|
|
|
),
|
|
|
),
|
|
|
- ),
|
|
|
+ )),
|
|
|
),
|
|
|
- SizedBox(height: 11.h),
|
|
|
- Row(
|
|
|
- mainAxisAlignment: MainAxisAlignment.center,
|
|
|
- children: [
|
|
|
- Obx(() {
|
|
|
- return GestureDetector(
|
|
|
- behavior: HitTestBehavior.opaque,
|
|
|
- onTap: () {
|
|
|
- controller.isAgree.value = !controller.isAgree.value;
|
|
|
- },
|
|
|
- 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,
|
|
|
- ),
|
|
|
- ),
|
|
|
- ),
|
|
|
- ),
|
|
|
- ),
|
|
|
- );
|
|
|
- }),
|
|
|
- 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(
|
|
|
+ _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),
|
|
|
- fontSize: 10.sp,
|
|
|
- fontWeight: FontWeight.w400,
|
|
|
+ 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,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ClickTextSpan(
|
|
|
+ text: StringName.textSpanPrivacyPolicy,
|
|
|
+ url: WebUrl.privacyPolicy,
|
|
|
+ ),
|
|
|
|
|
|
- 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.textSpanServiceTerms,
|
|
|
+ url: WebUrl.serviceAgreement,
|
|
|
+ ),
|
|
|
],
|
|
|
),
|
|
|
- ],
|
|
|
- ),
|
|
|
+ ),)
|
|
|
+ ],
|
|
|
);
|
|
|
}
|
|
|
}
|