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()