Browse Source

修改首页key

weicu
tanlongsheng 1 year ago
parent
commit
7910fcb78f
  1. 36
      lib/modules/home/views/home_view.dart

36
lib/modules/home/views/home_view.dart

@ -740,24 +740,26 @@ class HomeView extends GetView<HomeController> {
'太棒了!你已成功唤醒小言,接下来试试让它帮你做件事吧', '太棒了!你已成功唤醒小言,接下来试试让它帮你做件事吧',
); );
}, },
builder: (BuildContext context, GlobalKey key) => _buildFeatureCard( builder: (BuildContext context, GlobalKey key) => SizedBox(
key: key, key: key,
title: 'aiAssistant'.tr, // AI全能助手 child: _buildFeatureCard(
description: 'aiAssistantInfo'.tr, // 24小时专属顾问,解答问题、提供建议 title: 'aiAssistant'.tr, // AI全能助手
icon: Icons.assistant, description: 'aiAssistantInfo'.tr, // 24小时专属顾问,解答问题、提供建议
gradient: LinearGradient( icon: Icons.assistant,
begin: Alignment.topLeft, gradient: LinearGradient(
end: Alignment.bottomRight, begin: Alignment.topLeft,
colors: [ end: Alignment.bottomRight,
Color(0xFF0066CC).withOpacity(0.3), colors: [
Color(0xFF5E5CE6).withOpacity(0.3), Color(0xFF0066CC).withOpacity(0.3),
], Color(0xFF5E5CE6).withOpacity(0.3),
],
),
onTap: controller.exploreAIFeatures,
iconOnTop: true,
height: 175.h, // 增加高度
isDarkMode: isDarkMode,
iconColor: const Color(0xFF0066CC),
), ),
onTap: controller.exploreAIFeatures,
iconOnTop: true,
height: 175.h, // 增加高度
isDarkMode: isDarkMode,
iconColor: const Color(0xFF0066CC),
), ),
), ),
), ),
@ -821,7 +823,6 @@ class HomeView extends GetView<HomeController> {
// 特性卡片构建方法 // 特性卡片构建方法
Widget _buildFeatureCard({ Widget _buildFeatureCard({
GlobalKey? key,
required String title, required String title,
required String description, required String description,
required IconData icon, required IconData icon,
@ -833,7 +834,6 @@ class HomeView extends GetView<HomeController> {
Color iconColor = Colors.white, Color iconColor = Colors.white,
}) { }) {
return GestureDetector( return GestureDetector(
key: key,
onTap: onTap, onTap: onTap,
child: Container( child: Container(
height: height ?? 175.h, height: height ?? 175.h,

Loading…
Cancel
Save