Commit 2101b1ccb02a8b86d29e760cde0f31dc87dc5591

Authored by 吴启风
1 parent 77d53ec4

feat:购买页ui优化

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
... ... @@ -85,7 +85,7 @@ class _ShoppingView extends StatelessWidget {
85 85 children: [
86 86 Container(
87 87 width: 210.w, // 图片宽度
88   - height: 210.h, // 图片高度
  88 + height: 210.w, // 图片高度
89 89 decoration: BoxDecoration(
90 90 borderRadius: BorderRadius.circular(5.w),
91 91 // 圆角为5
... ...