From 433e9e255c7e97096b403b3078b95b7f3498f90e Mon Sep 17 00:00:00 2001 From: fmk Date: Fri, 27 Aug 2021 18:48:58 +0800 Subject: [PATCH] safety --- lib/home/founder_story_page.dart | 2 +- lib/home/home_page.dart | 2 +- lib/home/points_mall_page.dart | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/home/founder_story_page.dart b/lib/home/founder_story_page.dart index 4bf81f59..aa91d452 100644 --- a/lib/home/founder_story_page.dart +++ b/lib/home/founder_story_page.dart @@ -42,7 +42,7 @@ class _FounderStoryPage extends State { color: Colors.black.withAlpha(12), offset: Offset(0, 2), blurRadius: 14, - spreadRadius: 0) + spreadRadius: 0,) ], ), child: Column( diff --git a/lib/home/home_page.dart b/lib/home/home_page.dart index 5bfd5406..11406468 100644 --- a/lib/home/home_page.dart +++ b/lib/home/home_page.dart @@ -109,7 +109,7 @@ class _HomePage extends State with AutomaticKeepAliveClientMixin { BaseData> article = await apiService.queryArticle({ "pageNum": 1, - "pageSize": 10, + "pageSize": 2, "searchKey": "", "state": 1, "type": 2 diff --git a/lib/home/points_mall_page.dart b/lib/home/points_mall_page.dart index d905d067..f46de496 100644 --- a/lib/home/points_mall_page.dart +++ b/lib/home/points_mall_page.dart @@ -590,7 +590,7 @@ class _PointsMallPage extends State ), viewportFraction: 0.7, scale: 0.7, - loop: false, + physics: BouncingScrollPhysics(), itemBuilder: (context, position) { return InkWell( onTap: () { @@ -613,7 +613,7 @@ class _PointsMallPage extends State ), ); }, - itemCount: bannerData != null ? bannerData.length : 1, + itemCount: (bannerData != null && bannerData.length > 0) ? bannerData.length : 1, ), ), );