Commit 2101b1ccb02a8b86d29e760cde0f31dc87dc5591
1 parent
77d53ec4
feat:购买页ui优化
Showing
3 changed files
with
4 additions
and
5 deletions
lib/pages/shop/home/shop_home_page.dart
... | ... | @@ -68,8 +68,8 @@ class _ShopHomeView extends StatelessWidget { |
68 | 68 | gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( |
69 | 69 | crossAxisCount: 2, |
70 | 70 | childAspectRatio: 2, |
71 | - mainAxisSpacing: 14.h, | |
72 | - crossAxisSpacing: 6.w, | |
71 | + mainAxisSpacing: 16.h, | |
72 | + crossAxisSpacing: 12.w, | |
73 | 73 | ), |
74 | 74 | itemBuilder: (BuildContext context, int index) { |
75 | 75 | final productEntity = bloc.productDatas[index]; | ... | ... |
lib/pages/shop/home/widgets/product_item.dart
... | ... | @@ -18,11 +18,10 @@ class ProductItem extends StatelessWidget { |
18 | 18 | border: Border.all(width: 1.0, color: Colors.black)), |
19 | 19 | padding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 16.h), |
20 | 20 | child: Row( |
21 | - mainAxisAlignment: MainAxisAlignment.spaceBetween, | |
22 | 21 | children: [ |
23 | 22 | Container( |
24 | 23 | width: 124.w, // 图片宽度 |
25 | - height: 124.h, // 图片高度 | |
24 | + height: 124.w, // 图片高度 | |
26 | 25 | decoration: BoxDecoration( |
27 | 26 | borderRadius: BorderRadius.circular(5), |
28 | 27 | // 圆角为5 | ... | ... |
lib/pages/shopping/view.dart