瀏覽代碼

[feat]修改切换平台判断

hezihao 7 月之前
父節點
當前提交
f886ce354c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/widget/platform_util.dart

+ 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;