|
|
@ -1,3 +1,4 @@ |
|
|
|
|
|
import 'package:app_settings/app_settings.dart'; |
|
|
import 'package:get/get.dart'; |
|
|
import 'package:get/get.dart'; |
|
|
import 'dart:async'; |
|
|
import 'dart:async'; |
|
|
import '../../../routes/app_routes.dart'; |
|
|
import '../../../routes/app_routes.dart'; |
|
|
@ -188,7 +189,7 @@ class PairingController extends GetxController { |
|
|
void openBluetoothSettings() { |
|
|
void openBluetoothSettings() { |
|
|
try { |
|
|
try { |
|
|
// 使用app_settings插件打开蓝牙设置 |
|
|
// 使用app_settings插件打开蓝牙设置 |
|
|
// AppSettings.openAppSettings(type: AppSettingsType.bluetooth); |
|
|
AppSettings.openAppSettings(type: AppSettingsType.bluetooth); |
|
|
} catch (e) { |
|
|
} catch (e) { |
|
|
Logger.error('打开蓝牙设置失败: $e'); |
|
|
Logger.error('打开蓝牙设置失败: $e'); |
|
|
} |
|
|
} |
|
|
|