From 270298394d6fc2ab472a66044137d715516c561d Mon Sep 17 00:00:00 2001 From: fmk Date: Wed, 1 Sep 2021 19:33:24 +0800 Subject: [PATCH 1/2] 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), From 834a2e6d9c55b0c7225d4a005f8c589bb622f5eb Mon Sep 17 00:00:00 2001 From: fmk Date: Wed, 1 Sep 2021 19:36:57 +0800 Subject: [PATCH 2/2] safety --- lib/mine/vip_card_page.dart | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/lib/mine/vip_card_page.dart b/lib/mine/vip_card_page.dart index ef4e1ac9..55cb6dfd 100644 --- a/lib/mine/vip_card_page.dart +++ b/lib/mine/vip_card_page.dart @@ -224,13 +224,15 @@ class _VipCardPage extends State { size: 24, ), Text.rich( - TextSpan(children: [ - TextSpan( - text:S.of(context).chakanxiangqing, - style: TextStyle( - fontSize: 12.sp, - fontWeight: MyFontWeight.semi_bold, - color: Colors.black, + TextSpan( + children: [ + TextSpan( + text: S.of(context).chakanxiangqing, + style: TextStyle( + fontSize: 12.sp, + fontWeight: MyFontWeight.semi_bold, + color: Colors.black, + ), ), ], ),