|
|
@ -212,22 +212,6 @@ class HomeView extends GetView<HomeController> { |
|
|
height: 220.h, |
|
|
height: 220.h, |
|
|
child: PageView( |
|
|
child: PageView( |
|
|
children: [ |
|
|
children: [ |
|
|
// Center( |
|
|
|
|
|
// child: ClipRRect( |
|
|
|
|
|
// // 添加 ClipRRect 来实现圆角 |
|
|
|
|
|
// borderRadius: BorderRadius.circular(16.r), // 使用与其他部件一致的圆角大小 |
|
|
|
|
|
// child: SizedBox( |
|
|
|
|
|
// width: double.infinity, |
|
|
|
|
|
// height: 200.h, |
|
|
|
|
|
// child: Image.asset( |
|
|
|
|
|
// isDarkMode |
|
|
|
|
|
// ? 'assets/images/robot_light.png' |
|
|
|
|
|
// : 'assets/images/robot_light.png', |
|
|
|
|
|
// fit: BoxFit.fitWidth, |
|
|
|
|
|
// ), |
|
|
|
|
|
// ), |
|
|
|
|
|
// ), |
|
|
|
|
|
// ), |
|
|
|
|
|
Center( |
|
|
Center( |
|
|
child: ClipRRect( |
|
|
child: ClipRRect( |
|
|
// 添加 ClipRRect |
|
|
// 添加 ClipRRect |
|
|
@ -242,7 +226,7 @@ class HomeView extends GetView<HomeController> { |
|
|
imagePath, |
|
|
imagePath, |
|
|
width: double.infinity, |
|
|
width: double.infinity, |
|
|
height: 220.h, |
|
|
height: 220.h, |
|
|
fit: BoxFit.cover, |
|
|
fit: BoxFit.contain, |
|
|
errorBuilder: (context, error, stackTrace) { |
|
|
errorBuilder: (context, error, stackTrace) { |
|
|
// 网络图片加载失败时使用默认图片 |
|
|
// 网络图片加载失败时使用默认图片 |
|
|
return Image.asset( |
|
|
return Image.asset( |
|
|
@ -287,22 +271,6 @@ class HomeView extends GetView<HomeController> { |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
// Center( |
|
|
|
|
|
// child: ClipRRect( |
|
|
|
|
|
// // 添加 ClipRRect |
|
|
|
|
|
// borderRadius: BorderRadius.circular(16.r), |
|
|
|
|
|
// child: SizedBox( |
|
|
|
|
|
// width: double.infinity, |
|
|
|
|
|
// height: 200.h, |
|
|
|
|
|
// child: Image.asset( |
|
|
|
|
|
// isDarkMode |
|
|
|
|
|
// ? 'assets/images/glasses_light.png' |
|
|
|
|
|
// : 'assets/images/glasses_light.png', |
|
|
|
|
|
// fit: BoxFit.fitWidth, |
|
|
|
|
|
// ), |
|
|
|
|
|
// ), |
|
|
|
|
|
// ), |
|
|
|
|
|
// ), |
|
|
|
|
|
], |
|
|
], |
|
|
), |
|
|
), |
|
|
); |
|
|
); |
|
|
|