From 6a1b7518547ddb960110a491b07c305d3bfe82cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AB=A0=E6=96=87=E8=BD=A9?= <12812285557@qq.com> Date: Mon, 15 Aug 2022 10:03:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=99=BA=E8=83=BD=E5=AE=A2=E6=9C=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lib/ui/chat/widget/message_widget.dart | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/bytedesk_kefu/lib/ui/chat/widget/message_widget.dart b/bytedesk_kefu/lib/ui/chat/widget/message_widget.dart index 761f31b..dbcf284 100755 --- a/bytedesk_kefu/lib/ui/chat/widget/message_widget.dart +++ b/bytedesk_kefu/lib/ui/chat/widget/message_widget.dart @@ -449,12 +449,12 @@ class MessageWidget extends StatelessWidget { } else if (message.type == BytedeskConstants.MESSAGE_TYPE_ROBOT) { return Column( children: [ - // Text( - // message.content ?? '', - // textAlign: TextAlign.left, - // softWrap: true, - // style: TextStyle(color: Colors.black, fontSize: 16.0), - // ), + Text( + message.content ?? '', + textAlign: TextAlign.left, + softWrap: true, + style: TextStyle(color: Colors.black, fontSize: 16.0), + ), Visibility( visible: message.content != null && message.content!.length > 0, child: Html( @@ -537,24 +537,24 @@ class MessageWidget extends StatelessWidget { }, ), )), - Container( - margin: EdgeInsets.only(left: 10, top: 10), - child: Row( - children: [ - Text('没有找到答案?'), - GestureDetector( - child: Text( - '人工客服', - style: TextStyle(color: Theme.of(context).primaryColor), - ), - onTap: () { - BytedeskUtils.printLog('请求人工客服'); - bytedeskEventBus.fire(RequestAgentThreadEventBus()); - }, - ) - ], - ), - ) + // Container( + // margin: EdgeInsets.only(left: 10, top: 10), + // child: Row( + // children: [ + // Text('没有找到答案?'), + // GestureDetector( + // child: Text( + // '人工客服', + // style: TextStyle(color: Theme.of(context).primaryColor), + // ), + // onTap: () { + // BytedeskUtils.printLog('请求人工客服'); + // bytedeskEventBus.fire(RequestAgentThreadEventBus()); + // }, + // ) + // ], + // ), + // ) ], ); } else if (message.type == BytedeskConstants.MESSAGE_TYPE_ROBOT_V2) {