|
|
|
@ -203,7 +203,7 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
controller.userInfo.value.viplv] ?? |
|
|
|
'Unknown'; |
|
|
|
return Text( |
|
|
|
membershipString, |
|
|
|
membershipString.tr, // 会员等级 |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 10.sp, |
|
|
|
color: Colors.white, |
|
|
|
@ -327,7 +327,7 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
: Colors.cyan[100]!, |
|
|
|
iconColor: |
|
|
|
isDarkMode ? Colors.cyan[300]! : Colors.cyan[600]!, |
|
|
|
value: controller.timbreName.value.tr, |
|
|
|
value: controller.timbreName.value.tr, // 当前音色 |
|
|
|
valueStyle: TextStyle( |
|
|
|
fontSize: 12.sp, |
|
|
|
color: isDarkMode ? Colors.white70 : Colors.grey[500], |
|
|
|
@ -345,8 +345,8 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
: Colors.grey[200]), |
|
|
|
// 实时对话入口 |
|
|
|
_buildSimpleNavigationSetting( |
|
|
|
title: '实时语音对话', |
|
|
|
subtitle: '体验智能语音交互功能(功能预览)', |
|
|
|
title: 'realtimeVoiceChat'.tr, // 实时语音对话 |
|
|
|
subtitle: 'realtimeVoiceChatInfo'.tr, // 实时语音对话信息 |
|
|
|
icon: Icons.chat_bubble_outline, |
|
|
|
iconBgColor: isDarkMode |
|
|
|
? Colors.purple[900]!.withOpacity(0.3) |
|
|
|
@ -412,7 +412,7 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
Obx( |
|
|
|
() => _buildSimpleNavigationSetting( |
|
|
|
title: 'languageSetting'.tr, // 语言设置 |
|
|
|
subtitle: controller.language.value.name.tr, |
|
|
|
subtitle: controller.language.value.name.tr, // 当前语言 |
|
|
|
icon: Icons.language, |
|
|
|
iconBgColor: isDarkMode |
|
|
|
? Colors.indigo[900]!.withOpacity(0.3) |
|
|
|
@ -506,7 +506,7 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
// 清除配对设备 |
|
|
|
_buildSimpleNavigationSetting( |
|
|
|
title: 'deviceManagement'.tr, // 设备管理 |
|
|
|
subtitle: 'deviceManagementInfo'.tr, // 设备管理列表 |
|
|
|
subtitle: 'manageConnectedDevices'.tr, // 管理已绑定的蓝牙设备 |
|
|
|
icon: Icons.settings_bluetooth, |
|
|
|
iconBgColor: isDarkMode |
|
|
|
? Colors.red[900]!.withOpacity(0.3) |
|
|
|
@ -633,8 +633,8 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
// : Colors.grey[200]), |
|
|
|
// 测试ble耳机固件版本升级 |
|
|
|
_buildSimpleNavigationSetting( |
|
|
|
title: '固件升级'.tr, |
|
|
|
subtitle: 'ble耳机固件版本升级'.tr, |
|
|
|
title: 'firmwareUpgrade'.tr, // 固件升级 |
|
|
|
subtitle: 'bleHeadsetFirmwareUpgrade'.tr, // BLE耳机固件版本升级 |
|
|
|
icon: Icons.system_update_alt, |
|
|
|
iconBgColor: isDarkMode |
|
|
|
? Colors.orange[900]!.withOpacity(0.3) |
|
|
|
@ -651,14 +651,21 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
: Colors.grey[200]), |
|
|
|
|
|
|
|
// 添加权限管理设置项 |
|
|
|
_buildSettingItem( |
|
|
|
_buildSimpleNavigationSetting( |
|
|
|
title: 'permissionManagement'.tr, // 权限管理 |
|
|
|
subtitle: 'permissionManagementInfo'.tr, // 管理应用权限设置 |
|
|
|
icon: Icons.security, |
|
|
|
iconColor: Colors.orange, |
|
|
|
title: '权限管理'.tr, |
|
|
|
isDarkMode: isDarkMode, |
|
|
|
iconBgColor: isDarkMode |
|
|
|
? Colors.orange[900]!.withOpacity(0.3) |
|
|
|
: Colors.orange[100]!, |
|
|
|
iconColor: |
|
|
|
isDarkMode ? Colors.orange[300]! : Colors.orange[600]!, |
|
|
|
titleColor: isDarkMode ? Colors.white : null, |
|
|
|
subtitleColor: isDarkMode ? Colors.white70 : null, |
|
|
|
onTap: () { |
|
|
|
Get.toNamed(Routes.permissions); |
|
|
|
}, |
|
|
|
isDarkMode: isDarkMode, |
|
|
|
), |
|
|
|
], |
|
|
|
), |
|
|
|
@ -750,8 +757,8 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
Obx(() => Text( |
|
|
|
// 如果版本信息为空,显示加载中 |
|
|
|
controller.appVersion.value.isEmpty |
|
|
|
? '${'versions'.tr} 加载中...' |
|
|
|
: '${'versions'.tr} ${controller.appVersion.value} (Build ${controller.buildNumber.value})', |
|
|
|
? '${'versions'.tr} ${'loading'.tr}' // 版本 加载中 |
|
|
|
: '${'versions'.tr} ${controller.appVersion.value} (Build ${controller.buildNumber.value})', // 版本号 |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 12.sp, |
|
|
|
color: isDarkMode |
|
|
|
@ -784,7 +791,7 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
borderRadius: BorderRadius.circular(16.r), |
|
|
|
), |
|
|
|
child: Text( |
|
|
|
'checkUpdates'.tr, |
|
|
|
'checkUpdates'.tr, // 检查更新 |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 12.sp, |
|
|
|
color: |
|
|
|
@ -825,7 +832,7 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
Get.locale?.countryCode == 'CN') |
|
|
|
InkWell( |
|
|
|
onTap: () => Get.to( |
|
|
|
() => const WebViewPage( |
|
|
|
() => WebViewPage( |
|
|
|
url: 'https://beian.miit.gov.cn', |
|
|
|
title: 'ICP备案信息', |
|
|
|
), |
|
|
|
@ -1191,7 +1198,7 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
return Container( |
|
|
|
constraints: BoxConstraints(maxWidth: 120.w), // 限制最大宽度 |
|
|
|
child: Text( |
|
|
|
'$serviceName'.tr, |
|
|
|
'$serviceName'.tr, // 语音服务名称 |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 12.sp, |
|
|
|
color: isDarkMode ? Colors.white70 : Colors.grey[600], |
|
|
|
@ -1284,7 +1291,7 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
children: [ |
|
|
|
Text( |
|
|
|
'${service['name']}'.tr, |
|
|
|
'${service['name']}'.tr, // 服务名称 |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 16.sp, |
|
|
|
fontWeight: FontWeight.w500, |
|
|
|
@ -1296,7 +1303,7 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
), |
|
|
|
SizedBox(height: 4.h), |
|
|
|
Text( |
|
|
|
'${service['description']}'.tr, |
|
|
|
'${service['description']}'.tr, // 服务描述 |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 12.sp, |
|
|
|
color: isDarkMode |
|
|
|
@ -1421,7 +1428,7 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
children: [ |
|
|
|
Expanded( |
|
|
|
child: Text( |
|
|
|
language.name.tr, |
|
|
|
language.name.tr, // 语言名称 |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 16.sp, |
|
|
|
fontWeight: FontWeight.w500, |
|
|
|
@ -1433,7 +1440,7 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
), |
|
|
|
), |
|
|
|
Text( |
|
|
|
language.alias, // 这里使用原始名称,不加 .tr |
|
|
|
language.alias, // 语言别名(原始名称,不加.tr) |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 14.sp, |
|
|
|
color: isDarkMode |
|
|
|
|