Browse Source

fix(translations): 修正DeepSound拼写错误并添加ICP备案信息链接

修正了zh_cn.dart文件中"DeepSound"的拼写错误,并在设置视图中添加了ICP备案信息的链接,以便在中文环境下显示备案号。
newdev_shunjiawei
lxm 1 year ago
parent
commit
3f3f028846
  1. 2
      lib/core/translations/language/zh_cn.dart
  2. 38
      lib/modules/settings/views/settings_view.dart

2
lib/core/translations/language/zh_cn.dart

@ -118,7 +118,7 @@ const Map<String, String> zhCN = {
"exploreSlogan": "智能耳机,无限可能", "exploreSlogan": "智能耳机,无限可能",
"exploreSlogan1": "智能陪伴,无限可能", "exploreSlogan1": "智能陪伴,无限可能",
"exploreSlogan2": "智能眼镜,无限可能", "exploreSlogan2": "智能眼镜,无限可能",
"exploreAi": "探索DeepSound提供的AI功能", "exploreAi": "探索DeapSound提供的AI功能",
"aiFunction": "AI功能", "aiFunction": "AI功能",
"allRoundAssistant": "全能助理", "allRoundAssistant": "全能助理",
"allRoundAssistantInfo": "帮你解决各类问题", "allRoundAssistantInfo": "帮你解决各类问题",

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

@ -9,6 +9,7 @@ import '../../../core/widgets/common_bottom_nav.dart';
import '../../../routes/app_routes.dart'; import '../../../routes/app_routes.dart';
//import '../../../data/models/user_Info.dart'; //import '../../../data/models/user_Info.dart';
import 'dart:io'; import 'dart:io';
import '../../common/webview_page.dart';
class SettingsView extends GetView<SettingsController> { class SettingsView extends GetView<SettingsController> {
const SettingsView({Key? key}) : super(key: key); const SettingsView({Key? key}) : super(key: key);
@ -580,11 +581,11 @@ class SettingsView extends GetView<SettingsController> {
onTap: () => Get.toNamed(Routes.OTA_UPGRADE), onTap: () => Get.toNamed(Routes.OTA_UPGRADE),
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]),
// 添加权限管理设置项 // 添加权限管理设置项
_buildSettingItem( _buildSettingItem(
@ -596,11 +597,11 @@ class SettingsView extends GetView<SettingsController> {
Get.toNamed(Routes.permissions); Get.toNamed(Routes.permissions);
}, },
), ),
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(
@ -889,6 +890,23 @@ class SettingsView extends GetView<SettingsController> {
color: isDarkMode ? Colors.grey[400] : Colors.grey[500], color: isDarkMode ? Colors.grey[400] : Colors.grey[500],
), ),
), ),
SizedBox(height: 4.h),
if (Get.locale?.languageCode == 'zh')
InkWell(
onTap: () => Get.to(
() => const WebViewPage(
url: 'https://beian.miit.gov.cn',
title: 'ICP备案信息',
),
),
child: Text(
'粤ICP备2025402357号-2A',
style: TextStyle(
fontSize: 12.sp,
color: isDarkMode ? Colors.grey[400] : Colors.grey[500],
),
),
),
], ],
), ),
), ),

Loading…
Cancel
Save