From 1045988529277a0f86e926ffb5a8324679e5f961 Mon Sep 17 00:00:00 2001 From: zhangmeng <494089941@qq.com> Date: Wed, 30 Mar 2022 16:11:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A5=BC=E4=B8=BB=E5=AD=97=E4=BD=93=E5=AF=B9?= =?UTF-8?q?=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../community_views/event_detail_page.dart | 6 +++--- .../community_views/widgets/chat_card.dart | 14 ++++++++++---- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/lib/ui/community/community_views/event_detail_page.dart b/lib/ui/community/community_views/event_detail_page.dart index 9a60d276..8e649b93 100644 --- a/lib/ui/community/community_views/event_detail_page.dart +++ b/lib/ui/community/community_views/event_detail_page.dart @@ -141,6 +141,7 @@ class _EventDetailPageState extends State { body: EasyRefresh.custom( controller: _refreshController, header: MaterialHeader(), + footer: MaterialFooter(), firstRefresh: true, onRefresh: () async { BaseModel model = await NetUtil().get( @@ -493,6 +494,7 @@ class _EventDetailPageState extends State { style: TextStyle( color: Colors.white, fontSize: 24.sp, + height: 1.2, fontWeight: FontWeight.bold), ), )), @@ -567,7 +569,6 @@ class _EventDetailPageState extends State { color: kPrimaryColor, minWidth: 120.w, height: 55.w, - onPressed: () async { var res = await NetUtil() .post(SAASAPI.community.commentInsert, params: params); @@ -594,7 +595,6 @@ class _EventDetailPageState extends State { ), ) ], - ) - ); + )); } } diff --git a/lib/ui/community/community_views/widgets/chat_card.dart b/lib/ui/community/community_views/widgets/chat_card.dart index 6d3a337a..e9900fe7 100644 --- a/lib/ui/community/community_views/widgets/chat_card.dart +++ b/lib/ui/community/community_views/widgets/chat_card.dart @@ -132,7 +132,7 @@ class _ChatCardState extends State { : kPrimaryColor, ), 5.wb, - '${widget.model.likes}' + '${_likeNum}' .text .size(24.sp) .color(Color(0xFF999999)) @@ -282,9 +282,15 @@ class _ChatCardState extends State { crossAxisAlignment: CrossAxisAlignment.start, children: [ 32.hb, - if (!widget.model.content!.isEmptyOrNull) - widget.model.content!.text.size(32.sp).black.make(), - 32.hb, + Offstage( + offstage: widget.model.content.isEmptyOrNull, + child: Column( + children: [ + widget.model.content!.text.size(32.sp).black.make(), + 32.hb, + ], + ), + ), _renderImage(), widget.model.topicTags.isEmpty ? SizedBox()