|
|
@ -30,7 +30,38 @@ class ExploreView extends GetView<ExploreController> { |
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
children: [ |
|
|
children: [ |
|
|
// 特色功能 |
|
|
// 特色功能 |
|
|
_buildFeaturedCard(), |
|
|
Container( |
|
|
|
|
|
height: 180.h, |
|
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
|
borderRadius: BorderRadius.circular(24.r), |
|
|
|
|
|
boxShadow: [ |
|
|
|
|
|
BoxShadow( |
|
|
|
|
|
color: Colors.black.withOpacity(0.2), |
|
|
|
|
|
blurRadius: 10, |
|
|
|
|
|
offset: const Offset(0, 4), |
|
|
|
|
|
), |
|
|
|
|
|
], |
|
|
|
|
|
), |
|
|
|
|
|
child: PageView( |
|
|
|
|
|
children: [ |
|
|
|
|
|
_buildFeaturedCard( |
|
|
|
|
|
'assets/images/explore.png', |
|
|
|
|
|
'exploreSlogan'.tr, // 智能耳机,无限可能 |
|
|
|
|
|
'exploreAi'.tr, // 探索DeepSound提供的AI功能 |
|
|
|
|
|
), |
|
|
|
|
|
_buildFeaturedCard( |
|
|
|
|
|
'assets/images/explore1.png', |
|
|
|
|
|
'exploreSlogan1'.tr, // 智能陪伴,无限可能 |
|
|
|
|
|
'exploreAi'.tr, // 探索DeepSound提供的AI功能 |
|
|
|
|
|
), |
|
|
|
|
|
_buildFeaturedCard( |
|
|
|
|
|
'assets/images/explore2.jpg', |
|
|
|
|
|
'exploreSlogan2'.tr, // 智能眼镜,无限可能 |
|
|
|
|
|
'exploreAi'.tr, // 探索DeepSound提供的AI功能 |
|
|
|
|
|
), |
|
|
|
|
|
], |
|
|
|
|
|
), |
|
|
|
|
|
), |
|
|
|
|
|
|
|
|
// AI功能列表 |
|
|
// AI功能列表 |
|
|
SizedBox(height: 24.h), |
|
|
SizedBox(height: 24.h), |
|
|
@ -132,20 +163,8 @@ class ExploreView extends GetView<ExploreController> { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 特色功能卡片 |
|
|
// 特色功能卡片 |
|
|
Widget _buildFeaturedCard() { |
|
|
Widget _buildFeaturedCard(String image, String title, String description) { |
|
|
return Container( |
|
|
return Stack( |
|
|
height: 180.h, |
|
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
|
borderRadius: BorderRadius.circular(24.r), |
|
|
|
|
|
boxShadow: [ |
|
|
|
|
|
BoxShadow( |
|
|
|
|
|
color: Colors.black.withOpacity(0.2), |
|
|
|
|
|
blurRadius: 10, |
|
|
|
|
|
offset: const Offset(0, 4), |
|
|
|
|
|
), |
|
|
|
|
|
], |
|
|
|
|
|
), |
|
|
|
|
|
child: Stack( |
|
|
|
|
|
children: [ |
|
|
children: [ |
|
|
// 背景图片 |
|
|
// 背景图片 |
|
|
ClipRRect( |
|
|
ClipRRect( |
|
|
@ -153,7 +172,7 @@ class ExploreView extends GetView<ExploreController> { |
|
|
child: Container( |
|
|
child: Container( |
|
|
color: Colors.blue.shade900, // 预设颜色,图片加载失败时显示 |
|
|
color: Colors.blue.shade900, // 预设颜色,图片加载失败时显示 |
|
|
child: Image.asset( |
|
|
child: Image.asset( |
|
|
'assets/images/explore.png', |
|
|
image, |
|
|
width: double.infinity, |
|
|
width: double.infinity, |
|
|
height: 180.h, |
|
|
height: 180.h, |
|
|
fit: BoxFit.cover, |
|
|
fit: BoxFit.cover, |
|
|
@ -196,7 +215,7 @@ class ExploreView extends GetView<ExploreController> { |
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
children: [ |
|
|
children: [ |
|
|
Text( |
|
|
Text( |
|
|
'exploreSlogan'.tr, // 智能耳机,无限可能 |
|
|
title, |
|
|
style: TextStyle( |
|
|
style: TextStyle( |
|
|
fontSize: 22.sp, |
|
|
fontSize: 22.sp, |
|
|
fontWeight: FontWeight.bold, |
|
|
fontWeight: FontWeight.bold, |
|
|
@ -205,7 +224,7 @@ class ExploreView extends GetView<ExploreController> { |
|
|
), |
|
|
), |
|
|
SizedBox(height: 4.h), |
|
|
SizedBox(height: 4.h), |
|
|
Text( |
|
|
Text( |
|
|
'exploreAi'.tr, // 探索DeepSound提供的AI功能 |
|
|
description, |
|
|
style: TextStyle( |
|
|
style: TextStyle( |
|
|
fontSize: 14.sp, |
|
|
fontSize: 14.sp, |
|
|
color: Colors.white.withOpacity(0.8), |
|
|
color: Colors.white.withOpacity(0.8), |
|
|
@ -215,7 +234,6 @@ class ExploreView extends GetView<ExploreController> { |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
], |
|
|
], |
|
|
), |
|
|
|
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|