|
|
|
@ -185,7 +185,7 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
height: 32.w, |
|
|
|
decoration: BoxDecoration( |
|
|
|
color: isDarkMode |
|
|
|
? Colors.white.withValues(alpha: 0.1) |
|
|
|
? const Color(0xFF2C2C2C) |
|
|
|
: Colors.white.withValues(alpha: 0.7), |
|
|
|
borderRadius: BorderRadius.circular(16.r), |
|
|
|
boxShadow: [ |
|
|
|
@ -371,41 +371,36 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
// ), |
|
|
|
Container( |
|
|
|
decoration: BoxDecoration( |
|
|
|
color: isDarkMode |
|
|
|
? Colors.white.withValues(alpha: 0.05) |
|
|
|
: Colors.white, |
|
|
|
color: isDarkMode ? const Color(0xFF1E1E1E) : Colors.white, |
|
|
|
borderRadius: BorderRadius.circular(16.r), |
|
|
|
border: isDarkMode |
|
|
|
? Border.all(color: const Color(0xFF2C2C2C), width: 1) |
|
|
|
: null, |
|
|
|
boxShadow: [ |
|
|
|
BoxShadow( |
|
|
|
color: isDarkMode |
|
|
|
? Colors.black.withValues(alpha: 0.2) |
|
|
|
: Colors.black.withValues(alpha: 0.05), |
|
|
|
blurRadius: 10, |
|
|
|
? Colors.black.withValues(alpha: 0.4) |
|
|
|
: Colors.black.withValues(alpha: 0.06), |
|
|
|
blurRadius: 12, |
|
|
|
offset: const Offset(0, 2), |
|
|
|
), |
|
|
|
], |
|
|
|
), |
|
|
|
child: ClipRRect( |
|
|
|
borderRadius: BorderRadius.circular(16.r), |
|
|
|
child: BackdropFilter( |
|
|
|
filter: isDarkMode |
|
|
|
? ImageFilter.blur(sigmaX: 5, sigmaY: 5) |
|
|
|
: ImageFilter.blur(sigmaX: 0, sigmaY: 0), |
|
|
|
child: Column( |
|
|
|
children: [ |
|
|
|
// 语言设置 |
|
|
|
Obx( |
|
|
|
() => _buildSimpleNavigationSetting( |
|
|
|
title: 'languageSetting'.tr, // 语言设置 |
|
|
|
subtitle: |
|
|
|
controller.currentLanguage.value.name.tr, // 当前语言 |
|
|
|
subtitle: controller.currentLanguage.value.name.tr, // 当前语言 |
|
|
|
icon: Icons.language, |
|
|
|
iconBgColor: isDarkMode |
|
|
|
? Colors.indigo[900]!.withValues(alpha: 0.3) |
|
|
|
: Colors.indigo[100]!, |
|
|
|
iconColor: isDarkMode |
|
|
|
? Colors.indigo[300]! |
|
|
|
: Colors.indigo[600]!, |
|
|
|
iconColor: |
|
|
|
isDarkMode ? Colors.indigo[300]! : Colors.indigo[600]!, |
|
|
|
titleColor: isDarkMode ? Colors.white : null, |
|
|
|
subtitleColor: isDarkMode ? Colors.white70 : null, |
|
|
|
onTap: () { |
|
|
|
@ -417,7 +412,7 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
Divider( |
|
|
|
height: 1, |
|
|
|
color: isDarkMode |
|
|
|
? Colors.white.withValues(alpha: 0.1) |
|
|
|
? const Color(0xFF2C2C2C) |
|
|
|
: Colors.grey[200]), |
|
|
|
|
|
|
|
// 主题设置 |
|
|
|
@ -439,7 +434,7 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
Divider( |
|
|
|
height: 1, |
|
|
|
color: isDarkMode |
|
|
|
? Colors.white.withValues(alpha: 0.1) |
|
|
|
? const Color(0xFF2C2C2C) |
|
|
|
: Colors.grey[200]), |
|
|
|
|
|
|
|
// 用户反馈 |
|
|
|
@ -489,7 +484,7 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
Divider( |
|
|
|
height: 1, |
|
|
|
color: isDarkMode |
|
|
|
? Colors.white.withValues(alpha: 0.1) |
|
|
|
? const Color(0xFF2C2C2C) |
|
|
|
: Colors.grey[200]), |
|
|
|
|
|
|
|
// 配对设备管理 |
|
|
|
@ -509,7 +504,7 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
Divider( |
|
|
|
height: 1, |
|
|
|
color: isDarkMode |
|
|
|
? Colors.white.withValues(alpha: 0.1) |
|
|
|
? const Color(0xFF2C2C2C) |
|
|
|
: Colors.grey[200]), |
|
|
|
|
|
|
|
// // 杰理测试 |
|
|
|
@ -661,7 +656,7 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
Divider( |
|
|
|
height: 1, |
|
|
|
color: isDarkMode |
|
|
|
? Colors.white.withValues(alpha: 0.1) |
|
|
|
? const Color(0xFF2C2C2C) |
|
|
|
: Colors.grey[200]), |
|
|
|
|
|
|
|
// 权限管理设置项 |
|
|
|
@ -686,7 +681,6 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
); |
|
|
|
} |
|
|
|
@ -711,25 +705,22 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
Container( |
|
|
|
padding: EdgeInsets.all(16.w), |
|
|
|
decoration: BoxDecoration( |
|
|
|
color: isDarkMode |
|
|
|
? Colors.white.withValues(alpha: 0.05) |
|
|
|
: Colors.white, |
|
|
|
color: isDarkMode ? const Color(0xFF1E1E1E) : Colors.white, |
|
|
|
borderRadius: BorderRadius.circular(16.r), |
|
|
|
border: isDarkMode |
|
|
|
? Border.all(color: const Color(0xFF2C2C2C), width: 1) |
|
|
|
: null, |
|
|
|
boxShadow: [ |
|
|
|
BoxShadow( |
|
|
|
color: isDarkMode |
|
|
|
? Colors.black.withValues(alpha: 0.2) |
|
|
|
: Colors.black.withValues(alpha: 0.05), |
|
|
|
blurRadius: 10, |
|
|
|
? Colors.black.withValues(alpha: 0.4) |
|
|
|
: Colors.black.withValues(alpha: 0.06), |
|
|
|
blurRadius: 12, |
|
|
|
offset: const Offset(0, 2), |
|
|
|
), |
|
|
|
], |
|
|
|
), |
|
|
|
clipBehavior: Clip.antiAlias, |
|
|
|
child: BackdropFilter( |
|
|
|
filter: isDarkMode |
|
|
|
? ImageFilter.blur(sigmaX: 5, sigmaY: 5) |
|
|
|
: ImageFilter.blur(sigmaX: 0, sigmaY: 0), |
|
|
|
child: Row( |
|
|
|
children: [ |
|
|
|
// 左侧应用信息区域 - 使用固定宽度 |
|
|
|
@ -780,9 +771,8 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
: '${'versions'.tr} ${controller.appVersion.value} (Build ${controller.buildNumber.value})', // 版本号 |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 12.sp, |
|
|
|
color: isDarkMode |
|
|
|
? Colors.white70 |
|
|
|
: Colors.black54, |
|
|
|
color: |
|
|
|
isDarkMode ? Colors.white70 : Colors.black54, |
|
|
|
), |
|
|
|
)), |
|
|
|
], |
|
|
|
@ -837,7 +827,6 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox(height: 16.h), |
|
|
|
Center( |
|
|
|
child: Column( |
|
|
|
|