|
|
|
@ -525,114 +525,114 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
? Colors.white.withOpacity(0.1) |
|
|
|
: Colors.grey[200]), |
|
|
|
|
|
|
|
// 杰理测试 |
|
|
|
_buildSimpleNavigationSetting( |
|
|
|
title: '杰理蓝牙测试', |
|
|
|
subtitle: '测试杰理蓝牙设备扫描、连接和功能', |
|
|
|
icon: Icons.bluetooth, |
|
|
|
iconBgColor: isDarkMode |
|
|
|
? Colors.blue[900]!.withOpacity(0.3) |
|
|
|
: Colors.blue[100]!, |
|
|
|
iconColor: |
|
|
|
isDarkMode ? Colors.blue[300]! : Colors.blue[600]!, |
|
|
|
titleColor: isDarkMode ? Colors.white : null, |
|
|
|
subtitleColor: isDarkMode ? Colors.white70 : null, |
|
|
|
onTap: () { |
|
|
|
Get.toNamed(Routes.jieliTest); |
|
|
|
}, |
|
|
|
isDarkMode: isDarkMode, |
|
|
|
), |
|
|
|
Divider( |
|
|
|
height: 1, |
|
|
|
color: isDarkMode |
|
|
|
? Colors.white.withOpacity(0.1) |
|
|
|
: Colors.grey[200]), |
|
|
|
// 面对面翻译测试 |
|
|
|
_buildSimpleNavigationSetting( |
|
|
|
title: '面对面翻译测试', |
|
|
|
subtitle: '测试面对面翻译', |
|
|
|
icon: Icons.bluetooth_searching, |
|
|
|
iconBgColor: isDarkMode |
|
|
|
? Colors.green[900]!.withOpacity(0.3) |
|
|
|
: Colors.green[100]!, |
|
|
|
iconColor: |
|
|
|
isDarkMode ? Colors.green[300]! : Colors.green[600]!, |
|
|
|
titleColor: isDarkMode ? Colors.white : null, |
|
|
|
subtitleColor: isDarkMode ? Colors.white70 : null, |
|
|
|
onTap: () { |
|
|
|
Get.toNamed(Routes.ftftranslation); |
|
|
|
}, |
|
|
|
isDarkMode: isDarkMode, |
|
|
|
), |
|
|
|
Divider( |
|
|
|
height: 1, |
|
|
|
color: isDarkMode |
|
|
|
? Colors.white.withOpacity(0.1) |
|
|
|
: Colors.grey[200]), |
|
|
|
// BLE测试 |
|
|
|
_buildSimpleNavigationSetting( |
|
|
|
title: 'opus解码测试', |
|
|
|
subtitle: '测试opus解码', |
|
|
|
icon: Icons.bluetooth_searching, |
|
|
|
iconBgColor: isDarkMode |
|
|
|
? Colors.green[900]!.withOpacity(0.3) |
|
|
|
: Colors.green[100]!, |
|
|
|
iconColor: |
|
|
|
isDarkMode ? Colors.green[300]! : Colors.green[600]!, |
|
|
|
titleColor: isDarkMode ? Colors.white : null, |
|
|
|
subtitleColor: isDarkMode ? Colors.white70 : null, |
|
|
|
onTap: () { |
|
|
|
Get.toNamed(Routes.opusTest); |
|
|
|
}, |
|
|
|
isDarkMode: isDarkMode, |
|
|
|
), |
|
|
|
Divider( |
|
|
|
height: 1, |
|
|
|
color: isDarkMode |
|
|
|
? Colors.white.withOpacity(0.1) |
|
|
|
: Colors.grey[200]), |
|
|
|
// // 杰理测试 |
|
|
|
// _buildSimpleNavigationSetting( |
|
|
|
// title: '杰理蓝牙测试', |
|
|
|
// subtitle: '测试杰理蓝牙设备扫描、连接和功能', |
|
|
|
// icon: Icons.bluetooth, |
|
|
|
// iconBgColor: isDarkMode |
|
|
|
// ? Colors.blue[900]!.withOpacity(0.3) |
|
|
|
// : Colors.blue[100]!, |
|
|
|
// iconColor: |
|
|
|
// isDarkMode ? Colors.blue[300]! : Colors.blue[600]!, |
|
|
|
// titleColor: isDarkMode ? Colors.white : null, |
|
|
|
// subtitleColor: isDarkMode ? Colors.white70 : null, |
|
|
|
// onTap: () { |
|
|
|
// Get.toNamed(Routes.jieliTest); |
|
|
|
// }, |
|
|
|
// isDarkMode: isDarkMode, |
|
|
|
// ), |
|
|
|
// Divider( |
|
|
|
// height: 1, |
|
|
|
// color: isDarkMode |
|
|
|
// ? Colors.white.withOpacity(0.1) |
|
|
|
// : Colors.grey[200]), |
|
|
|
// // 面对面翻译测试 |
|
|
|
// _buildSimpleNavigationSetting( |
|
|
|
// title: '面对面翻译测试', |
|
|
|
// subtitle: '测试面对面翻译', |
|
|
|
// icon: Icons.bluetooth_searching, |
|
|
|
// iconBgColor: isDarkMode |
|
|
|
// ? Colors.green[900]!.withOpacity(0.3) |
|
|
|
// : Colors.green[100]!, |
|
|
|
// iconColor: |
|
|
|
// isDarkMode ? Colors.green[300]! : Colors.green[600]!, |
|
|
|
// titleColor: isDarkMode ? Colors.white : null, |
|
|
|
// subtitleColor: isDarkMode ? Colors.white70 : null, |
|
|
|
// onTap: () { |
|
|
|
// Get.toNamed(Routes.ftftranslation); |
|
|
|
// }, |
|
|
|
// isDarkMode: isDarkMode, |
|
|
|
// ), |
|
|
|
// Divider( |
|
|
|
// height: 1, |
|
|
|
// color: isDarkMode |
|
|
|
// ? Colors.white.withOpacity(0.1) |
|
|
|
// : Colors.grey[200]), |
|
|
|
// // BLE测试 |
|
|
|
// _buildSimpleNavigationSetting( |
|
|
|
// title: 'opus解码测试', |
|
|
|
// subtitle: '测试opus解码', |
|
|
|
// icon: Icons.bluetooth_searching, |
|
|
|
// iconBgColor: isDarkMode |
|
|
|
// ? Colors.green[900]!.withOpacity(0.3) |
|
|
|
// : Colors.green[100]!, |
|
|
|
// iconColor: |
|
|
|
// isDarkMode ? Colors.green[300]! : Colors.green[600]!, |
|
|
|
// titleColor: isDarkMode ? Colors.white : null, |
|
|
|
// subtitleColor: isDarkMode ? Colors.white70 : null, |
|
|
|
// onTap: () { |
|
|
|
// Get.toNamed(Routes.opusTest); |
|
|
|
// }, |
|
|
|
// isDarkMode: isDarkMode, |
|
|
|
// ), |
|
|
|
// Divider( |
|
|
|
// height: 1, |
|
|
|
// color: isDarkMode |
|
|
|
// ? Colors.white.withOpacity(0.1) |
|
|
|
// : Colors.grey[200]), |
|
|
|
|
|
|
|
// BLE测试 |
|
|
|
_buildSimpleNavigationSetting( |
|
|
|
title: 'BLE蓝牙测试', |
|
|
|
subtitle: '测试BLE蓝牙设备扫描、连接和功能', |
|
|
|
icon: Icons.bluetooth_searching, |
|
|
|
iconBgColor: isDarkMode |
|
|
|
? Colors.green[900]!.withOpacity(0.3) |
|
|
|
: Colors.green[100]!, |
|
|
|
iconColor: |
|
|
|
isDarkMode ? Colors.green[300]! : Colors.green[600]!, |
|
|
|
titleColor: isDarkMode ? Colors.white : null, |
|
|
|
subtitleColor: isDarkMode ? Colors.white70 : null, |
|
|
|
onTap: () { |
|
|
|
Get.toNamed(Routes.bleTest); |
|
|
|
}, |
|
|
|
isDarkMode: isDarkMode, |
|
|
|
), |
|
|
|
Divider( |
|
|
|
height: 1, |
|
|
|
color: isDarkMode |
|
|
|
? Colors.white.withOpacity(0.1) |
|
|
|
: Colors.grey[200]), |
|
|
|
// _buildSimpleNavigationSetting( |
|
|
|
// title: 'BLE蓝牙测试', |
|
|
|
// subtitle: '测试BLE蓝牙设备扫描、连接和功能', |
|
|
|
// icon: Icons.bluetooth_searching, |
|
|
|
// iconBgColor: isDarkMode |
|
|
|
// ? Colors.green[900]!.withOpacity(0.3) |
|
|
|
// : Colors.green[100]!, |
|
|
|
// iconColor: |
|
|
|
// isDarkMode ? Colors.green[300]! : Colors.green[600]!, |
|
|
|
// titleColor: isDarkMode ? Colors.white : null, |
|
|
|
// subtitleColor: isDarkMode ? Colors.white70 : null, |
|
|
|
// onTap: () { |
|
|
|
// Get.toNamed(Routes.bleTest); |
|
|
|
// }, |
|
|
|
// isDarkMode: isDarkMode, |
|
|
|
// ), |
|
|
|
// Divider( |
|
|
|
// height: 1, |
|
|
|
// color: isDarkMode |
|
|
|
// ? Colors.white.withOpacity(0.1) |
|
|
|
// : Colors.grey[200]), |
|
|
|
|
|
|
|
// 火山语音测试 |
|
|
|
_buildSimpleNavigationSetting( |
|
|
|
title: '语音测试', |
|
|
|
subtitle: '测试语音识别和合成功能,支持多种服务实现', |
|
|
|
icon: Icons.record_voice_over, |
|
|
|
iconBgColor: isDarkMode |
|
|
|
? Colors.orange[900]!.withOpacity(0.3) |
|
|
|
: Colors.orange[100]!, |
|
|
|
iconColor: |
|
|
|
isDarkMode ? Colors.orange[300]! : Colors.orange[600]!, |
|
|
|
onTap: () => Get.toNamed(Routes.speechTest), |
|
|
|
isDarkMode: isDarkMode, |
|
|
|
), |
|
|
|
Divider( |
|
|
|
height: 1, |
|
|
|
color: isDarkMode |
|
|
|
? Colors.white.withOpacity(0.1) |
|
|
|
: Colors.grey[200]), |
|
|
|
// // 火山语音测试 |
|
|
|
// _buildSimpleNavigationSetting( |
|
|
|
// title: '语音测试', |
|
|
|
// subtitle: '测试语音识别和合成功能,支持多种服务实现', |
|
|
|
// icon: Icons.record_voice_over, |
|
|
|
// iconBgColor: isDarkMode |
|
|
|
// ? Colors.orange[900]!.withOpacity(0.3) |
|
|
|
// : Colors.orange[100]!, |
|
|
|
// iconColor: |
|
|
|
// isDarkMode ? Colors.orange[300]! : Colors.orange[600]!, |
|
|
|
// onTap: () => Get.toNamed(Routes.speechTest), |
|
|
|
// isDarkMode: isDarkMode, |
|
|
|
// ), |
|
|
|
// Divider( |
|
|
|
// height: 1, |
|
|
|
// color: isDarkMode |
|
|
|
// ? Colors.white.withOpacity(0.1) |
|
|
|
// : Colors.grey[200]), |
|
|
|
// 测试ble耳机固件版本升级 |
|
|
|
_buildSimpleNavigationSetting( |
|
|
|
title: 'ota升级', |
|
|
|
|