|
|
|
@ -740,72 +740,72 @@ class EditProfileView extends GetView<ProfileController> { |
|
|
|
}, |
|
|
|
isDarkMode: isDarkMode, |
|
|
|
), |
|
|
|
// Divider( |
|
|
|
// height: 1, |
|
|
|
// color: isDarkMode |
|
|
|
// ? Colors.white.withOpacity(0.1) |
|
|
|
// : Colors.grey[200]), |
|
|
|
// // 清理缓存 |
|
|
|
// _buildSimpleNavigationSetting( |
|
|
|
// title: 'clean'.tr, // 清理缓存 |
|
|
|
// icon: Icons.logout, |
|
|
|
// iconBgColor: isDarkMode |
|
|
|
// ? Colors.red[900]!.withOpacity(0.3) |
|
|
|
// : Colors.red[50]!, |
|
|
|
// iconColor: isDarkMode ? Colors.red[300]! : Colors.red[600]!, |
|
|
|
// titleColor: |
|
|
|
// isDarkMode ? Colors.red[300]! : Colors.red[600]!, |
|
|
|
// onTap: () { |
|
|
|
// // 退出登录确认对话框 |
|
|
|
// Get.dialog( |
|
|
|
// AlertDialog( |
|
|
|
// backgroundColor: |
|
|
|
// isDarkMode ? Colors.grey[900] : Colors.white, |
|
|
|
// title: Text( |
|
|
|
// 'clean'.tr, // 清理缓存 |
|
|
|
// style: TextStyle( |
|
|
|
// color: isDarkMode ? Colors.white : Colors.black87, |
|
|
|
// ), |
|
|
|
// ), |
|
|
|
// content: Text( |
|
|
|
// 'cleanTips'.tr, // 确定要退出当前账号吗? |
|
|
|
// style: TextStyle( |
|
|
|
// color: |
|
|
|
// isDarkMode ? Colors.white70 : Colors.black54, |
|
|
|
// ), |
|
|
|
// ), |
|
|
|
// actions: [ |
|
|
|
// TextButton( |
|
|
|
// onPressed: () => Get.back(), |
|
|
|
// child: Text( |
|
|
|
// 'cancel'.tr, // 取消 |
|
|
|
// style: TextStyle( |
|
|
|
// color: isDarkMode |
|
|
|
// ? Colors.white70 |
|
|
|
// : Colors.black54, |
|
|
|
// ), |
|
|
|
// ), |
|
|
|
// ), |
|
|
|
// TextButton( |
|
|
|
// onPressed: () { |
|
|
|
// Get.back(); |
|
|
|
// controller.clean(); |
|
|
|
// }, |
|
|
|
// child: Text( |
|
|
|
// 'confirm'.tr, // 确定 |
|
|
|
// style: TextStyle( |
|
|
|
// color: isDarkMode |
|
|
|
// ? Colors.red[300] |
|
|
|
// : Colors.red[600], |
|
|
|
// ), |
|
|
|
// ), |
|
|
|
// ), |
|
|
|
// ], |
|
|
|
// ), |
|
|
|
// ); |
|
|
|
// }, |
|
|
|
// isDarkMode: isDarkMode, |
|
|
|
// ), |
|
|
|
Divider( |
|
|
|
height: 1, |
|
|
|
color: isDarkMode |
|
|
|
? Colors.white.withOpacity(0.1) |
|
|
|
: Colors.grey[200]), |
|
|
|
// 清理缓存 |
|
|
|
_buildSimpleNavigationSetting( |
|
|
|
title: 'clean'.tr, // 清理缓存 |
|
|
|
icon: Icons.cleaning_services, |
|
|
|
iconBgColor: isDarkMode |
|
|
|
? Colors.red[900]!.withOpacity(0.3) |
|
|
|
: Colors.red[50]!, |
|
|
|
iconColor: isDarkMode ? Colors.red[300]! : Colors.red[600]!, |
|
|
|
titleColor: |
|
|
|
isDarkMode ? Colors.red[300]! : Colors.red[600]!, |
|
|
|
onTap: () { |
|
|
|
// 退出登录确认对话框 |
|
|
|
Get.dialog( |
|
|
|
AlertDialog( |
|
|
|
backgroundColor: |
|
|
|
isDarkMode ? Colors.grey[900] : Colors.white, |
|
|
|
title: Text( |
|
|
|
'clean'.tr, // 清除缓存 |
|
|
|
style: TextStyle( |
|
|
|
color: isDarkMode ? Colors.white : Colors.black87, |
|
|
|
), |
|
|
|
), |
|
|
|
content: Text( |
|
|
|
'cleanTips'.tr, // 确定要清除个人缓存吗? |
|
|
|
style: TextStyle( |
|
|
|
color: |
|
|
|
isDarkMode ? Colors.white70 : Colors.black54, |
|
|
|
), |
|
|
|
), |
|
|
|
actions: [ |
|
|
|
TextButton( |
|
|
|
onPressed: () => Get.back(), |
|
|
|
child: Text( |
|
|
|
'cancel'.tr, // 取消 |
|
|
|
style: TextStyle( |
|
|
|
color: isDarkMode |
|
|
|
? Colors.white70 |
|
|
|
: Colors.black54, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
TextButton( |
|
|
|
onPressed: () { |
|
|
|
Get.back(); |
|
|
|
controller.clean(); |
|
|
|
}, |
|
|
|
child: Text( |
|
|
|
'confirm'.tr, // 确定 |
|
|
|
style: TextStyle( |
|
|
|
color: isDarkMode |
|
|
|
? Colors.red[300] |
|
|
|
: Colors.red[600], |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
), |
|
|
|
); |
|
|
|
}, |
|
|
|
isDarkMode: isDarkMode, |
|
|
|
), |
|
|
|
Divider( |
|
|
|
height: 1, |
|
|
|
color: isDarkMode |
|
|
|
|