更新ios蓝牙扫描
This commit is contained in:
@@ -133,9 +133,14 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
|
||||
_startPeriodicScan();
|
||||
} else {
|
||||
// showToast("蓝牙开关或蓝牙权限未开启,请开启蓝牙开关与蓝牙权限".tr, closeTime: 7);
|
||||
TopSlideNotification.show(context,
|
||||
text: "蓝牙开关或蓝牙权限未开启,请开启蓝牙开关与蓝牙权限".tr,
|
||||
textColor: themeController.currentColor.sc9);
|
||||
try {
|
||||
_startScanning();
|
||||
_startPeriodicScan();
|
||||
} catch (e) {
|
||||
TopSlideNotification.show(context,
|
||||
text: "蓝牙权限未开启,请在设置中开启蓝牙权限".tr,
|
||||
textColor: themeController.currentColor.sc9);
|
||||
}
|
||||
}
|
||||
} else if (Platform.isAndroid) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user