From 3a42ecb9fdde61c04150860eb3a0150b53523c8d Mon Sep 17 00:00:00 2001 From: tanlongsheng <252620078@qq.com> Date: Tue, 25 Mar 2025 17:01:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9app=5Fsettings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/modules/pairing/controllers/pairing_controller.dart | 3 ++- pubspec.yaml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/modules/pairing/controllers/pairing_controller.dart b/lib/modules/pairing/controllers/pairing_controller.dart index 1c5af6f8a..b1f07dfdb 100644 --- a/lib/modules/pairing/controllers/pairing_controller.dart +++ b/lib/modules/pairing/controllers/pairing_controller.dart @@ -1,3 +1,4 @@ +import 'package:app_settings/app_settings.dart'; import 'package:get/get.dart'; import 'dart:async'; import '../../../routes/app_routes.dart'; @@ -188,7 +189,7 @@ class PairingController extends GetxController { void openBluetoothSettings() { try { // 使用app_settings插件打开蓝牙设置 - // AppSettings.openAppSettings(type: AppSettingsType.bluetooth); + AppSettings.openAppSettings(type: AppSettingsType.bluetooth); } catch (e) { Logger.error('打开蓝牙设置失败: $e'); } diff --git a/pubspec.yaml b/pubspec.yaml index 866526051..3b17bb70d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -46,6 +46,7 @@ dependencies: audio_waveforms: ^1.3.0 font_awesome_flutter: ^10.8.0 lottie: ^3.3.1 + app_settings: 5.2.0 speech_to_text: ^7.0.0 fluwx: ^5.4.1 firebase_core: ^3.12.1