From 5a68864018c2d4f2419e9f5562536e13653e12f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AB=A0=E6=96=87=E8=BD=A9?= <12812285557@qq.com> Date: Thu, 7 Apr 2022 13:51:47 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=B4=BB=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/home/home_page.dart | 3 ++- lib/ui/community/activity/activity_card.dart | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/pages/home/home_page.dart b/lib/pages/home/home_page.dart index 6ba26eff..9656d96d 100644 --- a/lib/pages/home/home_page.dart +++ b/lib/pages/home/home_page.dart @@ -390,7 +390,7 @@ class _HomePageState extends State _activityItemModels == [] ? SizedBox() : Container( - height: 460.w, + height: 450.w, child: ListView.separated( padding: EdgeInsets.zero, separatorBuilder: (context, index) { @@ -405,6 +405,7 @@ class _HomePageState extends State child: Builder( builder: (context) { return ActivityCard( + home: true, model: _activityItemModels[index]); }, diff --git a/lib/ui/community/activity/activity_card.dart b/lib/ui/community/activity/activity_card.dart index 8f827826..b2e72ea8 100644 --- a/lib/ui/community/activity/activity_card.dart +++ b/lib/ui/community/activity/activity_card.dart @@ -22,7 +22,7 @@ class ActivityCard extends StatelessWidget { Widget build(BuildContext context) { return ConstrainedBox( - constraints: BoxConstraints(maxHeight: home! ? 480.w : 540.w), + constraints: BoxConstraints(maxHeight: home! ? 450.w : 540.w), child: MaterialButton( clipBehavior: Clip.antiAlias, color: Colors.white, @@ -46,7 +46,7 @@ class ActivityCard extends StatelessWidget { child: BeeImageNetwork( imgs: model!.imgList ?? [], width: double.infinity, - height: home! ? 240.w : 340.w, + height: home! ? 250.w : 340.w, ), ), ), @@ -102,7 +102,7 @@ class ActivityCard extends StatelessWidget { Spacer(), Padding( - padding:EdgeInsets.only(left: 32.w,right: 32.w,bottom: 32.w), + padding: home!?EdgeInsets.only(left: 32.w,right: 32.w,): EdgeInsets.only(left: 32.w,right: 32.w,bottom: 32.w), child: Row( children: [ Flexible(