From c03a418a89b20d1832aaca6ea3b2de12be8d3ed7 Mon Sep 17 00:00:00 2001 From: datang Date: Thu, 24 Mar 2022 17:30:15 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=A0=E6=AD=A3=E7=A4=BE=E5=8C=BA=E5=8A=A8?= =?UTF-8?q?=E6=80=81=E6=96=87=E5=AD=97=E4=B8=BA=E8=BE=93=E5=85=A5=E9=97=B4?= =?UTF-8?q?=E8=B7=9D=E4=BE=9D=E7=84=B6=E5=AD=98=E5=9C=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/ui/community/community_views/widgets/chat_card.dart | 3 ++- lib/ui/community/community_views/widgets/chat_card_detail.dart | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ui/community/community_views/widgets/chat_card.dart b/lib/ui/community/community_views/widgets/chat_card.dart index a98f368b..7491236b 100644 --- a/lib/ui/community/community_views/widgets/chat_card.dart +++ b/lib/ui/community/community_views/widgets/chat_card.dart @@ -273,7 +273,8 @@ class _ChatCardState extends State { crossAxisAlignment: CrossAxisAlignment.start, children: [ 32.hb, - widget.model.content!.text.size(32.sp).black.make(), + if(!widget.model.content!.isEmptyOrNull) + widget.model.content!.text.size(32.sp).black.make(), 32.hb, _renderImage(), widget.model.topicTags.isEmpty diff --git a/lib/ui/community/community_views/widgets/chat_card_detail.dart b/lib/ui/community/community_views/widgets/chat_card_detail.dart index 7d5244a2..f2b09a38 100644 --- a/lib/ui/community/community_views/widgets/chat_card_detail.dart +++ b/lib/ui/community/community_views/widgets/chat_card_detail.dart @@ -156,6 +156,7 @@ class _ChatCardDetailState extends State { crossAxisAlignment: CrossAxisAlignment.start, children: [ 32.hb, + if(!widget.model.content!.isEmptyOrNull) widget.model.content!.text .size(28.sp) .color(ktextSubColor)