From ffc1ba682282a4aa6a35c863fb198393ab52de1c 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, 18 Aug 2022 16:07:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=97=E4=BD=93=E9=A2=9C?= =?UTF-8?q?=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lib/ui/chat/page/chat_kf_page.dart | 3 +++ .../lib/ui/chat/widget/message_widget.dart | 19 ++++++++++--------- bytedesk_kefu/lib/ui/widget/chat_input.dart | 16 ++++++++++++++++ bytedesk_kefu/lib/ui/widget/extra_item.dart | 2 +- 4 files changed, 30 insertions(+), 10 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 bddc234..b44c342 100755 --- a/bytedesk_kefu/lib/ui/chat/page/chat_kf_page.dart +++ b/bytedesk_kefu/lib/ui/chat/page/chat_kf_page.dart @@ -128,7 +128,10 @@ class _ChatKFPageState extends State BytedeskUtils.goodsInfo.addListener(() { print('发生改变!!!!!!!!!!'); + print('customGoods'+customGoods); + print('BytedeskUtils.goodsInfo.value'+BytedeskUtils.goodsInfo.value); customGoods = BytedeskUtils.goodsInfo.value; + print('BytedeskUtils.goodsInfo.value'+BytedeskUtils.goodsInfo.value); _goodsSubmitted(); }); diff --git a/bytedesk_kefu/lib/ui/chat/widget/message_widget.dart b/bytedesk_kefu/lib/ui/chat/widget/message_widget.dart index be80b64..b1444d4 100755 --- a/bytedesk_kefu/lib/ui/chat/widget/message_widget.dart +++ b/bytedesk_kefu/lib/ui/chat/widget/message_widget.dart @@ -677,6 +677,7 @@ class MessageWidget extends StatelessWidget { child: Text( title, maxLines: 2, + style: TextStyle(color: Color(0xFF333333)), overflow: TextOverflow.ellipsis, ), ), @@ -689,15 +690,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, ], ), diff --git a/bytedesk_kefu/lib/ui/widget/chat_input.dart b/bytedesk_kefu/lib/ui/widget/chat_input.dart index 5089ec1..6893923 100644 --- a/bytedesk_kefu/lib/ui/widget/chat_input.dart +++ b/bytedesk_kefu/lib/ui/widget/chat_input.dart @@ -335,6 +335,22 @@ class _ChatInputState extends State with TickerProviderStateMixin { // ), // hintText: '', // ), + decoration: InputDecoration( + + focusedBorder: UnderlineInputBorder( + borderSide: BorderSide( + width: 1, + + ), + ), + enabledBorder: UnderlineInputBorder( + borderSide: BorderSide( + width: 1, + color: Color(0xFF333333), + ), + ), + + ), style:TextStyle(color: Color(0xFF333333)), focusNode: _inputFocusNode, // maxLength: 400, diff --git a/bytedesk_kefu/lib/ui/widget/extra_item.dart b/bytedesk_kefu/lib/ui/widget/extra_item.dart index 25d98fc..45cf38d 100644 --- a/bytedesk_kefu/lib/ui/widget/extra_item.dart +++ b/bytedesk_kefu/lib/ui/widget/extra_item.dart @@ -58,7 +58,7 @@ class ExtraItem extends StatelessWidget { ), ), ), - Text(this.title), + Text(this.title,style: TextStyle(color: Color(0xFF333333)),), ], ), ),