Bladeren bron

[feat]商店页,iOS平台的UI调整

hezihao 7 maanden geleden
bovenliggende
commit
30e791e3be
2 gewijzigde bestanden met toevoegingen van 34 en 2 verwijderingen
  1. 32 0
      lib/module/store/store_page.dart
  2. 2 2
      lib/widget/platform_util.dart

+ 32 - 0
lib/module/store/store_page.dart

@@ -1077,6 +1077,38 @@ class StorePage extends BasePage<StoreController> {
     );
   }
 
+  /// 恢复订阅
+  Widget _buildRecoverSubscribe() {
+    return Container(
+      margin: EdgeInsets.only(left: 16.w, top: 8.h, right: 16.w),
+      child: Row(
+        children: [
+          Text(
+            "⚠️  订阅未生效?点此试试",
+            style: TextStyle(
+              color: Color(0xFF666355),
+              fontSize: 13.sp,
+              fontWeight: FontWeight.w400,
+            ),
+          ),
+          GestureDetector(
+            onTap: () {
+              // 恢复订阅
+            },
+            child: Text(
+              "  恢复订阅>",
+              style: TextStyle(
+                color: Color(0xFF479DF7),
+                fontSize: 13.sp,
+                fontWeight: FontWeight.w400,
+              ),
+            ),
+          ),
+        ],
+      ),
+    );
+  }
+
   Widget _buildBuyButtonCard() {
     return Container(
       width: 360.w,

+ 2 - 2
lib/widget/platform_util.dart

@@ -12,10 +12,10 @@ class PlatformUtil {
 
   static bool get isAndroid => Platform.isAndroid;
 
-  static bool get isIOS => Platform.isIOS;
+  // static bool get isIOS => Platform.isIOS;
 
   /// 切换注释,就可以用来测试iOS平台的效果
-  // static bool get isIOS => true;
+  static bool get isIOS => true;
 
   static bool get isFuchsia => Platform.isFuchsia;