|
|
@ -449,12 +449,12 @@ class MessageWidget extends StatelessWidget {
|
|
|
|
} else if (message.type == BytedeskConstants.MESSAGE_TYPE_ROBOT) {
|
|
|
|
} else if (message.type == BytedeskConstants.MESSAGE_TYPE_ROBOT) {
|
|
|
|
return Column(
|
|
|
|
return Column(
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
// Text(
|
|
|
|
Text(
|
|
|
|
// message.content ?? '',
|
|
|
|
message.content ?? '',
|
|
|
|
// textAlign: TextAlign.left,
|
|
|
|
textAlign: TextAlign.left,
|
|
|
|
// softWrap: true,
|
|
|
|
softWrap: true,
|
|
|
|
// style: TextStyle(color: Colors.black, fontSize: 16.0),
|
|
|
|
style: TextStyle(color: Colors.black, fontSize: 16.0),
|
|
|
|
// ),
|
|
|
|
),
|
|
|
|
Visibility(
|
|
|
|
Visibility(
|
|
|
|
visible: message.content != null && message.content!.length > 0,
|
|
|
|
visible: message.content != null && message.content!.length > 0,
|
|
|
|
child: Html(
|
|
|
|
child: Html(
|
|
|
@ -537,24 +537,24 @@ class MessageWidget extends StatelessWidget {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
Container(
|
|
|
|
// Container(
|
|
|
|
margin: EdgeInsets.only(left: 10, top: 10),
|
|
|
|
// margin: EdgeInsets.only(left: 10, top: 10),
|
|
|
|
child: Row(
|
|
|
|
// child: Row(
|
|
|
|
children: [
|
|
|
|
// children: [
|
|
|
|
Text('没有找到答案?'),
|
|
|
|
// Text('没有找到答案?'),
|
|
|
|
GestureDetector(
|
|
|
|
// GestureDetector(
|
|
|
|
child: Text(
|
|
|
|
// child: Text(
|
|
|
|
'人工客服',
|
|
|
|
// '人工客服',
|
|
|
|
style: TextStyle(color: Theme.of(context).primaryColor),
|
|
|
|
// style: TextStyle(color: Theme.of(context).primaryColor),
|
|
|
|
),
|
|
|
|
// ),
|
|
|
|
onTap: () {
|
|
|
|
// onTap: () {
|
|
|
|
BytedeskUtils.printLog('请求人工客服');
|
|
|
|
// BytedeskUtils.printLog('请求人工客服');
|
|
|
|
bytedeskEventBus.fire(RequestAgentThreadEventBus());
|
|
|
|
// bytedeskEventBus.fire(RequestAgentThreadEventBus());
|
|
|
|
},
|
|
|
|
// },
|
|
|
|
)
|
|
|
|
// )
|
|
|
|
],
|
|
|
|
// ],
|
|
|
|
),
|
|
|
|
// ),
|
|
|
|
)
|
|
|
|
// )
|
|
|
|
],
|
|
|
|
],
|
|
|
|
);
|
|
|
|
);
|
|
|
|
} else if (message.type == BytedeskConstants.MESSAGE_TYPE_ROBOT_V2) {
|
|
|
|
} else if (message.type == BytedeskConstants.MESSAGE_TYPE_ROBOT_V2) {
|
|
|
|