From 270298394d6fc2ab472a66044137d715516c561d Mon Sep 17 00:00:00 2001 From: fmk Date: Wed, 1 Sep 2021 19:33:24 +0800 Subject: [PATCH] safety --- lib/home/home_page.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/home/home_page.dart b/lib/home/home_page.dart index 2adc0561..7e5adf87 100644 --- a/lib/home/home_page.dart +++ b/lib/home/home_page.dart @@ -446,8 +446,7 @@ class _HomePage extends State with AutomaticKeepAliveClientMixin { Widget integralStore() { return GridView.builder( itemCount: gooods != null ? gooods.length : 0, - padding: - EdgeInsets.only(left: 13.w, right: 13.w, top: 13.h, bottom: 13.h), + padding: EdgeInsets.all(13.w), shrinkWrap: true, physics: NeverScrollableScrollPhysics(), gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( @@ -635,7 +634,7 @@ class _HomePage extends State with AutomaticKeepAliveClientMixin { ); }, itemCount: - (brandData != null && brandData.length > 0) ? brandData.length : 1, + (brandData != null && brandData.length > 0) ? brandData.length : 0, ), // child: ListView.builder( // padding: EdgeInsets.only(left: 10.w, right: 10.w),