|
|
@@ -602,8 +602,7 @@ class MemberPage extends BasePage<MemberController> {
|
|
|
Widget buildVerticalSlideshowWidget() {
|
|
|
return Row(
|
|
|
children: [
|
|
|
- Visibility(visible: !Platform.isIOS, child: Spacer()),
|
|
|
- Container(
|
|
|
+ Expanded(child: Container(
|
|
|
width: 192.w,
|
|
|
height: 26.w,
|
|
|
decoration: BoxDecoration(
|
|
|
@@ -614,32 +613,36 @@ class MemberPage extends BasePage<MemberController> {
|
|
|
child: AnimatedSwitcherWidget(
|
|
|
controller: controller.switcherController)),
|
|
|
),
|
|
|
- Spacer(),
|
|
|
- Obx(() {
|
|
|
- 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();
|
|
|
+ ),
|
|
|
+ if (Platform.isIOS) Obx(() {
|
|
|
+ return Visibility(
|
|
|
+ visible: Platform.isIOS && controller.accountRepository.isLogin.value,
|
|
|
+ child: Row(
|
|
|
+ children: [
|
|
|
+ SizedBox(width: 26.w,),
|
|
|
+ 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)),
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ ));
|
|
|
})
|
|
|
],
|
|
|
);
|