|
|
@@ -613,30 +613,30 @@ class MemberPage extends BasePage<MemberController> {
|
|
|
),
|
|
|
Spacer(),
|
|
|
Obx(() {
|
|
|
- return Visibility(
|
|
|
- visible: Platform.isIOS && controller.accountRepository.isLogin.value,
|
|
|
- child: GestureDetector(
|
|
|
- onTap: controller.clickRecoverSubscribe,
|
|
|
- child: Container(
|
|
|
- height: 26.w,
|
|
|
- decoration: BoxDecoration(
|
|
|
- color: ColorName.black40,
|
|
|
- borderRadius: BorderRadius.circular(26.w / 2.0),
|
|
|
- ),
|
|
|
- padding: EdgeInsets.symmetric(horizontal: 10.w),
|
|
|
- child: Row(
|
|
|
- children: [
|
|
|
- Assets.images.iconAppleRecoverSubscribe.image(width: 14.w,height: 14.w),
|
|
|
- Text(StringName.appleRecoverSubscribeTxt,
|
|
|
- style: TextStyle(
|
|
|
- fontSize: 11.sp,
|
|
|
- color: ColorName.white,
|
|
|
- fontWeight: FontWeight.w500)),
|
|
|
- ],
|
|
|
- ),
|
|
|
+ if (Platform.isIOS && controller.accountRepository.isLogin.value) {
|
|
|
+ return GestureDetector(
|
|
|
+ onTap: controller.clickRecoverSubscribe,
|
|
|
+ child: Container(
|
|
|
+ height: 26.w,
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ color: ColorName.black40,
|
|
|
+ borderRadius: BorderRadius.circular(26.w / 2.0),
|
|
|
),
|
|
|
- )
|
|
|
- );
|
|
|
+ padding: EdgeInsets.symmetric(horizontal: 10.w),
|
|
|
+ child: Row(
|
|
|
+ children: [
|
|
|
+ Assets.images.iconAppleRecoverSubscribe.image(width: 14.w,height: 14.w),
|
|
|
+ Text(StringName.appleRecoverSubscribeTxt,
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 11.sp,
|
|
|
+ color: ColorName.white,
|
|
|
+ fontWeight: FontWeight.w500)),
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ }
|
|
|
+ return Container();
|
|
|
})
|
|
|
],
|
|
|
);
|