|
|
|
@ -407,8 +407,6 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
? Colors.white.withOpacity(0.1) |
|
|
|
: Colors.grey[200]), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 用户反馈 |
|
|
|
_buildSimpleNavigationSetting( |
|
|
|
title: 'feedback'.tr, // 用户反馈 |
|
|
|
@ -427,29 +425,33 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
}, |
|
|
|
isDarkMode: isDarkMode, |
|
|
|
), |
|
|
|
Divider( |
|
|
|
height: 1, |
|
|
|
color: isDarkMode |
|
|
|
? Colors.white.withOpacity(0.1) |
|
|
|
: Colors.grey[200]), |
|
|
|
if (Platform.isAndroid) ...[ |
|
|
|
Divider( |
|
|
|
height: 1, |
|
|
|
color: isDarkMode |
|
|
|
? Colors.white.withOpacity(0.1) |
|
|
|
: Colors.grey[200]), |
|
|
|
|
|
|
|
// 隐私设置 |
|
|
|
_buildSimpleNavigationSetting( |
|
|
|
title: 'privacySettings'.tr, // 隐私设置 |
|
|
|
subtitle: 'privacySettingsInfo'.tr, // 管理数据收集和权限 |
|
|
|
icon: Icons.shield_outlined, |
|
|
|
iconBgColor: isDarkMode |
|
|
|
? Colors.purple[900]!.withOpacity(0.3) |
|
|
|
: Colors.purple[100]!, |
|
|
|
iconColor: isDarkMode |
|
|
|
? Colors.purple[300]! |
|
|
|
: Colors.purple[600]!, |
|
|
|
titleColor: isDarkMode ? Colors.white : null, |
|
|
|
subtitleColor: isDarkMode ? Colors.white70 : null, |
|
|
|
onTap: () { |
|
|
|
AppSettings.openAppSettings(); |
|
|
|
}, |
|
|
|
isDarkMode: isDarkMode, |
|
|
|
) |
|
|
|
], |
|
|
|
|
|
|
|
// 隐私设置 |
|
|
|
_buildSimpleNavigationSetting( |
|
|
|
title: 'privacySettings'.tr, // 隐私设置 |
|
|
|
subtitle: 'privacySettingsInfo'.tr, // 管理数据收集和权限 |
|
|
|
icon: Icons.shield_outlined, |
|
|
|
iconBgColor: isDarkMode |
|
|
|
? Colors.purple[900]!.withOpacity(0.3) |
|
|
|
: Colors.purple[100]!, |
|
|
|
iconColor: |
|
|
|
isDarkMode ? Colors.purple[300]! : Colors.purple[600]!, |
|
|
|
titleColor: isDarkMode ? Colors.white : null, |
|
|
|
subtitleColor: isDarkMode ? Colors.white70 : null, |
|
|
|
onTap: () { |
|
|
|
AppSettings.openAppSettings(); |
|
|
|
}, |
|
|
|
isDarkMode: isDarkMode, |
|
|
|
), |
|
|
|
Divider( |
|
|
|
height: 1, |
|
|
|
color: isDarkMode |
|
|
|
@ -597,29 +599,32 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
onTap: () => Get.toNamed(Routes.OTA_UPGRADE), |
|
|
|
isDarkMode: isDarkMode, |
|
|
|
), |
|
|
|
Divider( |
|
|
|
height: 1, |
|
|
|
color: isDarkMode |
|
|
|
? Colors.white.withOpacity(0.1) |
|
|
|
: Colors.grey[200]), |
|
|
|
if (Platform.isAndroid) ...[ |
|
|
|
Divider( |
|
|
|
height: 1, |
|
|
|
color: isDarkMode |
|
|
|
? Colors.white.withOpacity(0.1) |
|
|
|
: Colors.grey[200]), |
|
|
|
|
|
|
|
// 添加权限管理设置项 |
|
|
|
_buildSimpleNavigationSetting( |
|
|
|
title: 'permissionManagement'.tr, // 权限管理 |
|
|
|
subtitle: 'permissionManagementInfo'.tr, // 管理应用权限设置 |
|
|
|
icon: Icons.security, |
|
|
|
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, |
|
|
|
), |
|
|
|
// 添加权限管理设置项 |
|
|
|
_buildSimpleNavigationSetting( |
|
|
|
title: 'permissionManagement'.tr, // 权限管理 |
|
|
|
subtitle: 'permissionManagementInfo'.tr, // 管理应用权限设置 |
|
|
|
icon: Icons.security, |
|
|
|
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, |
|
|
|
), |
|
|
|
] |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
|