Selaa lähdekoodia

[feat]修改切换平台判断

hezihao 7 kuukautta sitten
vanhempi
commit
f886ce354c
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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;