diff --git a/lib/pages/shop/home/shop_home_page.dart b/lib/pages/shop/home/shop_home_page.dart index e37ed76..83fd7e9 100644 --- a/lib/pages/shop/home/shop_home_page.dart +++ b/lib/pages/shop/home/shop_home_page.dart @@ -5,7 +5,6 @@ import 'package:wow_english/common/extension/string_extension.dart'; import 'package:wow_english/common/widgets/we_app_bar.dart'; import 'package:wow_english/pages/shop/home/widgets/product_item.dart'; import 'package:wow_english/route/route.dart'; -import 'package:wow_english/utils/toast_util.dart'; import 'bloc/shop_home_bloc.dart'; diff --git a/lib/pages/shop/home/widgets/product_item.dart b/lib/pages/shop/home/widgets/product_item.dart index 727007f..5f58797 100644 --- a/lib/pages/shop/home/widgets/product_item.dart +++ b/lib/pages/shop/home/widgets/product_item.dart @@ -67,10 +67,13 @@ class ProductItem extends StatelessWidget { ), ), GestureDetector( + behavior: HitTestBehavior.opaque, onTap: () { onTap(); }, child: Container( + width: double.infinity, + constraints: BoxConstraints(minHeight: 28.h), decoration: BoxDecoration( color: const Color(0xFFF5C51F), borderRadius: BorderRadius.circular(5.r), @@ -78,17 +81,14 @@ class ProductItem extends StatelessWidget { color: const Color(0xFF333333), width: 1.0, )), - padding: EdgeInsets.symmetric( - vertical: 1.h - ), + padding: EdgeInsets.symmetric(vertical: 4.h), child: Center( child: Text( '立即购买', style: TextStyle( fontSize: 10.sp, color: const Color(0xFF333333)), ), - ) - ), + )), ) ], ),