Browse Source

refactor(settings): 移除唤醒词设置相关代码并调整固件升级选项

weicu
lxm 10 months ago
parent
commit
c253722527
  1. 36
      lib/modules/settings/views/settings_view.dart

36
lib/modules/settings/views/settings_view.dart

@ -748,24 +748,24 @@ class SettingsView extends GetView<SettingsController> {
// color: isDarkMode // color: isDarkMode
// ? Colors.white.withOpacity(0.1) // ? Colors.white.withOpacity(0.1)
// : Colors.grey[200]), // : Colors.grey[200]),
// 测试ble耳机固件版本升级 // 耳机唤醒词设置
_buildSimpleNavigationSetting( // _buildSimpleNavigationSetting(
title: '唤醒词'.tr, // 固件升级 // title: '唤醒词'.tr, // 唤醒词设置
subtitle: '唤醒词管理'.tr, // BLE耳机固件版本升级 // subtitle: '唤醒词管理'.tr, // 唤醒词管理
icon: Icons.voice_chat, // icon: Icons.voice_chat,
iconBgColor: isDarkMode // iconBgColor: isDarkMode
? Colors.orange[900]!.withOpacity(0.3) // ? Colors.orange[900]!.withOpacity(0.3)
: Colors.orange[100]!, // : Colors.orange[100]!,
iconColor: // iconColor:
isDarkMode ? Colors.orange[300]! : Colors.orange[600]!, // isDarkMode ? Colors.orange[300]! : Colors.orange[600]!,
onTap: () => Get.toNamed(Routes.wakeupvoice), // onTap: () => Get.toNamed(Routes.wakeupvoice),
isDarkMode: isDarkMode, // isDarkMode: isDarkMode,
), // ),
Divider( // Divider(
height: 1, // height: 1,
color: isDarkMode // color: isDarkMode
? Colors.white.withOpacity(0.1) // ? Colors.white.withOpacity(0.1)
: Colors.grey[200]), // : Colors.grey[200]),
_buildSimpleNavigationSetting( _buildSimpleNavigationSetting(
title: 'firmwareUpgrade'.tr, // 固件升级 title: 'firmwareUpgrade'.tr, // 固件升级
subtitle: 'bleHeadsetFirmwareUpgrade'.tr, // BLE耳机固件版本升级 subtitle: 'bleHeadsetFirmwareUpgrade'.tr, // BLE耳机固件版本升级

Loading…
Cancel
Save