Browse Source

优化多语言,注释掉未使用的备份与恢复设置组件

newdev_shunjiawei
lxm 2 years ago
parent
commit
00e3051541
  1. 4
      lib/modules/pairing/controllers/pairing_controller.dart
  2. 46
      lib/modules/settings/views/settings_view.dart

4
lib/modules/pairing/controllers/pairing_controller.dart

@ -103,7 +103,7 @@ class PairingController extends GetxController {
return;
}
statusDescription.value = '未找到已连接的蓝牙设备';
statusDescription.value = 'notFound'.tr;//未找到已连接的蓝牙设备
}
/// 初始化流程
@ -113,7 +113,7 @@ class PairingController extends GetxController {
_voiceInteractionService.initialize();
isLoading.value = true;
statusDescription.value = '正在初始化...';
statusDescription.value = 'initializing'.tr; // 正在初始化...;
// 确保蓝牙服务已初始化
if (!await _bluetoothService.initialize()) {

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

@ -435,29 +435,29 @@ class SettingsView extends GetView<SettingsController> {
: Colors.grey[200]),
// 备份与恢复
_buildNavigationSetting(
title: 'backups'.tr, // 备份与恢复
subtitle: 'backupsInfo'.tr, // 备份设置和AI互动历史
icon: Icons.cloud_upload_outlined,
iconBgColor: isDarkMode
? Colors.cyan[900]!.withOpacity(0.3)
: Colors.cyan[100]!,
iconColor:
isDarkMode ? Colors.cyan[300]! : Colors.cyan[600]!,
value: '${'lastBackup'.tr} 今天', // 上次备份:
valueStyle: TextStyle(
fontSize: 12.sp,
color: isDarkMode ? Colors.white70 : Colors.grey[500],
),
onTap: () {
// 打开备份设置页面
print(
'---------用户头像-${controller.userInfo.value.avatar}');
print('---------用户名-${controller.userInfo.value.name}');
//print('user${User.instance.value}');
},
isDarkMode: isDarkMode,
),
// _buildNavigationSetting(
// title: 'backups'.tr, // 备份与恢复
// subtitle: 'backupsInfo'.tr, // 备份设置和AI互动历史
// icon: Icons.cloud_upload_outlined,
// iconBgColor: isDarkMode
// ? Colors.cyan[900]!.withOpacity(0.3)
// : Colors.cyan[100]!,
// iconColor:
// isDarkMode ? Colors.cyan[300]! : Colors.cyan[600]!,
// value: '${'lastBackup'.tr} 今天', // 上次备份:
// valueStyle: TextStyle(
// fontSize: 12.sp,
// color: isDarkMode ? Colors.white70 : Colors.grey[500],
// ),
// onTap: () {
// // 打开备份设置页面
// print(
// '---------用户头像-${controller.userInfo.value.avatar}');
// print('---------用户名-${controller.userInfo.value.name}');
// //print('user${User.instance.value}');
// },
// isDarkMode: isDarkMode,
// ),
Divider(
height: 1,
color: isDarkMode

Loading…
Cancel
Save