From 634aa29577660b66802f8cf0676ac5cc519a78ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AB=A0=E6=96=87=E8=BD=A9?= <12812285557@qq.com> Date: Tue, 16 Aug 2022 14:25:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=95=86=E5=93=81=E6=82=AC?= =?UTF-8?q?=E6=B5=AE=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lib/ui/chat/page/chat_kf_page.dart | 6 ++-- .../lib/ui/chat/widget/message_widget.dart | 36 +++++++++---------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/bytedesk_kefu/lib/ui/chat/page/chat_kf_page.dart b/bytedesk_kefu/lib/ui/chat/page/chat_kf_page.dart index 83d16e0..0bf927e 100755 --- a/bytedesk_kefu/lib/ui/chat/page/chat_kf_page.dart +++ b/bytedesk_kefu/lib/ui/chat/page/chat_kf_page.dart @@ -572,11 +572,11 @@ class _ChatKFPageState extends State showGood? Positioned( top: 0, child:Container( - width: 300, - margin: EdgeInsets.all(10), + width: MediaQuery.of(context).size.width, + padding: EdgeInsets.symmetric(vertical: 10), decoration: BoxDecoration( - color: Color(0xFFe5f9ff).withOpacity(0.8), + color: Color(0xFFe5f9ff), borderRadius: BorderRadius.all(Radius.circular(5)), ), child: Row( diff --git a/bytedesk_kefu/lib/ui/chat/widget/message_widget.dart b/bytedesk_kefu/lib/ui/chat/widget/message_widget.dart index dbcf284..be80b64 100755 --- a/bytedesk_kefu/lib/ui/chat/widget/message_widget.dart +++ b/bytedesk_kefu/lib/ui/chat/widget/message_widget.dart @@ -253,15 +253,15 @@ class MessageWidget extends StatelessWidget { overflow: TextOverflow.ellipsis, ), ), - Container( - margin: EdgeInsets.only(top: 10, left: 8), - child: Text( - '$content', - style: TextStyle(fontSize: 12, color: Colors.grey), - maxLines: 1, - overflow: TextOverflow.ellipsis, - ), - ) + // Container( + // margin: EdgeInsets.only(top: 10, left: 8), + // child: Text( + // '$content', + // style: TextStyle(fontSize: 12, color: Colors.grey), + // maxLines: 1, + // overflow: TextOverflow.ellipsis, + // ), + // ) // Gaps.vGap4, ], ), @@ -689,15 +689,15 @@ class MessageWidget extends StatelessWidget { overflow: TextOverflow.ellipsis, ), ), - Container( - margin: EdgeInsets.only(top: 10, left: 8), - child: Text( - '$content', - style: TextStyle(fontSize: 12, color: Colors.grey), - maxLines: 1, - overflow: TextOverflow.ellipsis, - ), - ) + // Container( + // margin: EdgeInsets.only(top: 10, left: 8), + // child: Text( + // '$content', + // style: TextStyle(fontSize: 12, color: Colors.grey), + // maxLines: 1, + // overflow: TextOverflow.ellipsis, + // ), + // ) // Gaps.vGap4, ], ),