ソースを参照

[feat]修改切换平台判断

hezihao 7 ヶ月 前
コミット
3bb769edcc
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;