diff --git a/lib/modules/home/views/home_view.dart b/lib/modules/home/views/home_view.dart index 55122a5b6..0f7bf8fc7 100644 --- a/lib/modules/home/views/home_view.dart +++ b/lib/modules/home/views/home_view.dart @@ -212,22 +212,6 @@ class HomeView extends GetView { height: 220.h, child: PageView( 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( child: ClipRRect( // 添加 ClipRRect @@ -242,7 +226,7 @@ class HomeView extends GetView { imagePath, width: double.infinity, height: 220.h, - fit: BoxFit.cover, + fit: BoxFit.contain, errorBuilder: (context, error, stackTrace) { // 网络图片加载失败时使用默认图片 return Image.asset( @@ -287,22 +271,6 @@ class HomeView extends GetView { ), ), ), - // 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, - // ), - // ), - // ), - // ), ], ), ); diff --git a/lib/modules/ota_upgrade/views/ota_upgrade_view.dart b/lib/modules/ota_upgrade/views/ota_upgrade_view.dart index 8872e9947..1bc1caf0f 100644 --- a/lib/modules/ota_upgrade/views/ota_upgrade_view.dart +++ b/lib/modules/ota_upgrade/views/ota_upgrade_view.dart @@ -208,11 +208,11 @@ class OtaUpgradeView extends GetView { return ClipRRect( borderRadius: BorderRadius.circular(16.r), child: SizedBox( - width: 100.h, - height: 100.h, + width: 120.h, + height: 120.h, child: Image.network( imagePath, - fit: BoxFit.cover, + fit: BoxFit.contain, loadingBuilder: (context, child, loadingProgress) { if (loadingProgress == null) return child; return SizedBox(