|
|
|
@ -115,12 +115,12 @@ class ExploreView extends GetView<ExploreController> { |
|
|
|
), |
|
|
|
child: IconButton( |
|
|
|
icon: Icon( |
|
|
|
Icons.more_vert, |
|
|
|
Icons.analytics_outlined, |
|
|
|
size: 16.sp, |
|
|
|
color: isDarkMode ? Colors.white : Colors.grey[700], |
|
|
|
), |
|
|
|
padding: EdgeInsets.zero, |
|
|
|
onPressed: () {}, |
|
|
|
onPressed: controller.goToTranslationStats, |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
@ -419,37 +419,38 @@ class ExploreView extends GetView<ExploreController> { |
|
|
|
|
|
|
|
//整行布局 |
|
|
|
Widget _buildAIFeaturesWideSection(bool isDarkMode) { |
|
|
|
return Column( |
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
children: [ |
|
|
|
// Text( |
|
|
|
// 'aiFunction'.tr, // AI功能 |
|
|
|
// style: TextStyle( |
|
|
|
// fontSize: 18.sp, |
|
|
|
// fontWeight: FontWeight.w600, |
|
|
|
// color: isDarkMode ? Colors.white : Colors.grey[800], |
|
|
|
// ), |
|
|
|
// ), |
|
|
|
// SizedBox(height: 16.h), |
|
|
|
// 直接使用 Column 包裹宽版卡片 |
|
|
|
Column( |
|
|
|
children: controller.aiFeaturesWide.map((feature) { |
|
|
|
return Padding( |
|
|
|
padding: EdgeInsets.only(bottom: 16.h), // 卡片间距 |
|
|
|
child: _buildAIFeatureItemWide( |
|
|
|
feature, |
|
|
|
controller.aiFeatures.indexOf(feature), |
|
|
|
isDarkMode, |
|
|
|
), |
|
|
|
); |
|
|
|
}).toList(), |
|
|
|
), |
|
|
|
], |
|
|
|
); |
|
|
|
} |
|
|
|
return Column( |
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
children: [ |
|
|
|
// Text( |
|
|
|
// 'aiFunction'.tr, // AI功能 |
|
|
|
// style: TextStyle( |
|
|
|
// fontSize: 18.sp, |
|
|
|
// fontWeight: FontWeight.w600, |
|
|
|
// color: isDarkMode ? Colors.white : Colors.grey[800], |
|
|
|
// ), |
|
|
|
// ), |
|
|
|
// SizedBox(height: 16.h), |
|
|
|
// 直接使用 Column 包裹宽版卡片 |
|
|
|
Column( |
|
|
|
children: controller.aiFeaturesWide.map((feature) { |
|
|
|
return Padding( |
|
|
|
padding: EdgeInsets.only(bottom: 16.h), // 卡片间距 |
|
|
|
child: _buildAIFeatureItemWide( |
|
|
|
feature, |
|
|
|
controller.aiFeatures.indexOf(feature), |
|
|
|
isDarkMode, |
|
|
|
), |
|
|
|
); |
|
|
|
}).toList(), |
|
|
|
), |
|
|
|
], |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
// AI功能项(宽版本,用于横跨整行的AI全能助手) |
|
|
|
Widget _buildAIFeatureItemWide(AIFeature feature, int index, bool isDarkMode) { |
|
|
|
// AI功能项(宽版本,用于横跨整行的AI全能助手) |
|
|
|
Widget _buildAIFeatureItemWide( |
|
|
|
AIFeature feature, int index, bool isDarkMode) { |
|
|
|
return GestureDetector( |
|
|
|
onTap: () => controller.onAIFeatureTap(index), |
|
|
|
child: Container( |
|
|
|
@ -529,7 +530,8 @@ class ExploreView extends GetView<ExploreController> { |
|
|
|
} |
|
|
|
|
|
|
|
// AI功能项(宽版本,专门用于商务会议助手) |
|
|
|
Widget _buildAIFeatureItemWideForMeeting(AIFeature feature, int index, bool isDarkMode) { |
|
|
|
Widget _buildAIFeatureItemWideForMeeting( |
|
|
|
AIFeature feature, int index, bool isDarkMode) { |
|
|
|
return GestureDetector( |
|
|
|
onTap: () => controller.onAIFeatureWideTap(index), |
|
|
|
child: Container( |
|
|
|
@ -646,7 +648,9 @@ class ExploreView extends GetView<ExploreController> { |
|
|
|
child: Container( |
|
|
|
padding: EdgeInsets.all(16.w), |
|
|
|
decoration: BoxDecoration( |
|
|
|
color: isDarkMode ? Colors.white.withValues(alpha: 0.05) : Colors.grey[100], |
|
|
|
color: isDarkMode |
|
|
|
? Colors.white.withValues(alpha: 0.05) |
|
|
|
: Colors.grey[100], |
|
|
|
borderRadius: BorderRadius.circular(16.r), |
|
|
|
boxShadow: [ |
|
|
|
BoxShadow( |
|
|
|
|