|
|
|
@ -40,11 +40,11 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
padding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 16.h), |
|
|
|
children: [ |
|
|
|
_buildUserInfoCard(isDarkMode), |
|
|
|
SizedBox(height: 20.h), |
|
|
|
SizedBox(height: 12.h), |
|
|
|
_buildVipPurchaseCard(isDarkMode), |
|
|
|
// SizedBox(height: 20.h), |
|
|
|
// _buildAISettingsSection(isDarkMode), |
|
|
|
SizedBox(height: 20.h), |
|
|
|
SizedBox(height: 16.h), |
|
|
|
_buildSystemSettingsSection(isDarkMode), |
|
|
|
SizedBox(height: 20.h), |
|
|
|
_buildAboutSection(isDarkMode), |
|
|
|
@ -220,15 +220,15 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
// 构建Vip购买卡片 |
|
|
|
Widget _buildVipPurchaseCard(bool isDarkMode) { |
|
|
|
return Container( |
|
|
|
padding: EdgeInsets.all(16.w), |
|
|
|
padding: EdgeInsets.fromLTRB(16.w, 16.h, 16.w, 12.h), |
|
|
|
decoration: BoxDecoration( |
|
|
|
gradient: LinearGradient( |
|
|
|
colors: isDarkMode |
|
|
|
? [ |
|
|
|
const Color(0xFF4A148C).withOpacity(0.7), |
|
|
|
const Color(0xFFAD1457).withOpacity(0.7) |
|
|
|
const Color(0xFF0D47A1).withOpacity(0.5), |
|
|
|
const Color(0xFF1976D2).withOpacity(0.5) |
|
|
|
] |
|
|
|
: [const Color(0xFFF8BBD0), const Color(0xFFE1BEE7)], |
|
|
|
: [const Color(0xFFE3F2FD), const Color(0xFFBBDEFB)], |
|
|
|
begin: Alignment.topLeft, |
|
|
|
end: Alignment.bottomRight, |
|
|
|
), |
|
|
|
@ -243,45 +243,64 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
), |
|
|
|
], |
|
|
|
), |
|
|
|
child: Row( |
|
|
|
child: Column( |
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
children: [ |
|
|
|
Text( |
|
|
|
'vipRecharge'.tr, // 会员充值 |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 14.sp, |
|
|
|
fontWeight: FontWeight.w600, |
|
|
|
color: isDarkMode ? Colors.white : Colors.black87, |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox(height: 12.h), |
|
|
|
Row( |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround, |
|
|
|
children: [ |
|
|
|
_buildCategoryItem( |
|
|
|
icon: Icons.workspace_premium, |
|
|
|
label: 'premiumMember'.tr, |
|
|
|
label: 'premiumMember'.tr, //AI充值 |
|
|
|
iconBg: isDarkMode |
|
|
|
? Colors.amber[900]!.withOpacity(0.3) |
|
|
|
: Colors.amber[100]!, |
|
|
|
iconColor: isDarkMode ? Colors.amber[300]! : Colors.amber[600]!, |
|
|
|
textColor: isDarkMode ? Colors.white : Colors.black87, |
|
|
|
onTap: () => Get.toNamed(Routes.goodsvip), |
|
|
|
), |
|
|
|
_buildCategoryItem( |
|
|
|
icon: Icons.translate, |
|
|
|
label: 'interpretation'.tr, |
|
|
|
label: 'translationRecharge'.tr, //翻译充值 |
|
|
|
iconBg: isDarkMode |
|
|
|
? Colors.indigo[900]!.withOpacity(0.3) |
|
|
|
: Colors.indigo[100]!, |
|
|
|
iconColor: isDarkMode ? Colors.indigo[300]! : Colors.indigo[600]!, |
|
|
|
iconColor: |
|
|
|
isDarkMode ? Colors.indigo[300]! : Colors.indigo[600]!, |
|
|
|
textColor: isDarkMode ? Colors.white : Colors.black87, |
|
|
|
onTap: () => Get.toNamed(Routes.goodstrade), |
|
|
|
), |
|
|
|
_buildCategoryItem( |
|
|
|
icon: Icons.people, |
|
|
|
label: 'conferenceAssistant'.tr, |
|
|
|
label: 'meetingAssistantRecharge'.tr, //会议充值 |
|
|
|
iconBg: isDarkMode |
|
|
|
? Colors.pink[900]!.withOpacity(0.3) |
|
|
|
: Colors.pink[100]!, |
|
|
|
iconColor: isDarkMode ? Colors.pink[300]! : Colors.pink[600]!, |
|
|
|
textColor: isDarkMode ? Colors.white : Colors.black87, |
|
|
|
onTap: () => Get.toNamed(Routes.goodsmeet), |
|
|
|
), |
|
|
|
// _buildCategoryItem( |
|
|
|
// icon: Icons.smart_toy, |
|
|
|
// label: 'aiFunction'.tr, |
|
|
|
// iconBg: isDarkMode |
|
|
|
// ? Colors.teal[900]!.withOpacity(0.3) |
|
|
|
// : Colors.teal[100]!, |
|
|
|
// iconColor: isDarkMode ? Colors.teal[300]! : Colors.teal[600]!, |
|
|
|
// onTap: () => Get.toNamed(Routes.goodsai), |
|
|
|
// ), |
|
|
|
_buildCategoryItem( |
|
|
|
icon: Icons.cloud, |
|
|
|
label: 'cloudSync'.tr, //云端同步 |
|
|
|
iconBg: isDarkMode |
|
|
|
? Colors.teal[900]!.withOpacity(0.3) |
|
|
|
: Colors.teal[100]!, |
|
|
|
iconColor: isDarkMode ? Colors.teal[300]! : Colors.teal[600]!, |
|
|
|
textColor: isDarkMode ? Colors.white : Colors.black87, |
|
|
|
onTap: () => {}, |
|
|
|
), |
|
|
|
], |
|
|
|
), |
|
|
|
], |
|
|
|
), |
|
|
|
); |
|
|
|
@ -293,6 +312,7 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
required Color iconBg, |
|
|
|
required Color iconColor, |
|
|
|
required VoidCallback onTap, |
|
|
|
Color? textColor, |
|
|
|
}) { |
|
|
|
return InkWell( |
|
|
|
onTap: onTap, |
|
|
|
@ -312,7 +332,7 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
color: iconColor, |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox(height: 8.h), |
|
|
|
SizedBox(height: 5.h), |
|
|
|
SizedBox( |
|
|
|
width: 72.w, |
|
|
|
height: 32.h, |
|
|
|
@ -323,7 +343,8 @@ class SettingsView extends GetView<SettingsController> { |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 12.sp, |
|
|
|
fontWeight: FontWeight.w500, |
|
|
|
color: Colors.white, |
|
|
|
color: textColor ?? |
|
|
|
(Get.isDarkMode ? Colors.white : Colors.black87), |
|
|
|
height: 1.2, |
|
|
|
), |
|
|
|
maxLines: 2, |
|
|
|
|