From 20013b5f5b76d36323301d688cbcc761726989fe 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, 11 Aug 2022 11:49:15 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lib/ui/chat/widget/message_widget.dart | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/bytedesk_kefu/lib/ui/chat/widget/message_widget.dart b/bytedesk_kefu/lib/ui/chat/widget/message_widget.dart index d041302..73c8519 100755 --- a/bytedesk_kefu/lib/ui/chat/widget/message_widget.dart +++ b/bytedesk_kefu/lib/ui/chat/widget/message_widget.dart @@ -754,13 +754,15 @@ class MessageWidget extends StatelessWidget { return Row( mainAxisAlignment: MainAxisAlignment.center, children: [ - Container( - padding: EdgeInsets.only(bottom: 5, top: 5), - child: Text( - message!.content ?? '', - textAlign: TextAlign.center, - style: TextStyle(fontSize: 10.0,color: Color(0xFF333333)), - maxLines: 15, + Expanded( + child: Container( + padding: EdgeInsets.only(bottom: 5, top: 5), + child: Text( + message!.content ?? '', + textAlign: TextAlign.center, + style: TextStyle(fontSize: 10.0,color: Color(0xFF333333)), + maxLines: 15, + ), ), ) ],