kidd3166 1 vuosi sitten
vanhempi
commit
16c2368789
2 muutettua tiedostoa jossa 14 lisäystä ja 13 poistoa
  1. 13 12
      lib/widgets/dialog/search_device.dart
  2. 1 1
      pubspec.yaml

+ 13 - 12
lib/widgets/dialog/search_device.dart

@@ -167,29 +167,30 @@ class BluetoothOffScreen extends StatelessWidget {
       mainAxisSize: MainAxisSize.min,
       children: <Widget>[
         SizedBox(
-          height: 20,
+          height: 30,
         ),
         Image.asset("lib/assets/img/pop_icon_bluetooth.png"),
         SizedBox(
           height: 20,
         ),
         Text(
-          '蓝牙未开启',
+          '手机蓝牙未开启,请打开手机蓝牙',
           style: Theme.of(context).textTheme.bodyText2!,
         ),
         SizedBox(
           height: 10,
         ),
-        GestureDetector(
-          behavior: HitTestBehavior.opaque,
-          onTap: () async {
-            if (Platform.isAndroid) {
-              AndroidIntent intent = AndroidIntent(action: "android.bluetooth.adapter.action.REQUEST_ENABLE");
-              await intent.launch();
-            } else if (Platform.isIOS) {
-              launch("App-Prefs:root=Bluetooth");
-            }
-          },
+        if (Platform.isAndroid)
+          GestureDetector(
+            behavior: HitTestBehavior.opaque,
+            onTap: () async {
+              if (Platform.isAndroid) {
+                AndroidIntent intent = AndroidIntent(action: "android.bluetooth.adapter.action.REQUEST_ENABLE");
+                await intent.launch();
+              } else if (Platform.isIOS) {
+                launch("App-Prefs:root=Bluetooth");
+              }
+            },
           child: Center(
             child: Row(
               mainAxisSize: MainAxisSize.min,

+ 1 - 1
pubspec.yaml

@@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
 # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
 # Read more about iOS versioning at
 # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
-version: 1.5.1+15102
+version: 1.5.2+15202
 
 environment:
   sdk: ">=2.16.0 <3.0.0"