From ca167b983bf3b550a8e228e745b6b4e39de9b9ad 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:40:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B6=88=E6=81=AF=E5=AE=BD?= =?UTF-8?q?=E5=BA=A6=E5=92=8C=E5=9B=BE=E7=89=87=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bytedesk_demo/lib/page/chat_type_page.dart | 4 ++-- bytedesk_kefu/lib/ui/chat/widget/message_widget.dart | 10 +++++----- bytedesk_kefu/lib/ui/widget/extra_item.dart | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/bytedesk_demo/lib/page/chat_type_page.dart b/bytedesk_demo/lib/page/chat_type_page.dart index c591690..358f555 100755 --- a/bytedesk_demo/lib/page/chat_type_page.dart +++ b/bytedesk_demo/lib/page/chat_type_page.dart @@ -171,8 +171,8 @@ class _ChatTypePageState extends State { onTap: (){ custom = json.encode({ "type": BytedeskConstants.MESSAGE_TYPE_COMMODITY, // 不能修改 - "title": "222", // 可自定义, 类型为字符串 - "content": "222", // 可自定义, 类型为字符串 + "title": "222222222222212312312321321", // 可自定义, 类型为字符串 + "content": "1232132131232131231232132121213213213123", // 可自定义, 类型为字符串 "price": "222", // 可自定义, 类型为字符串 "url": "https://item.m.jd.com/product/12172344.html", // 必须为url网址, 类型为字符串 diff --git a/bytedesk_kefu/lib/ui/chat/widget/message_widget.dart b/bytedesk_kefu/lib/ui/chat/widget/message_widget.dart index 476be6f..7dec9da 100755 --- a/bytedesk_kefu/lib/ui/chat/widget/message_widget.dart +++ b/bytedesk_kefu/lib/ui/chat/widget/message_widget.dart @@ -39,7 +39,7 @@ class MessageWidget extends StatelessWidget { // 发送消息widget Widget _buildSendWidget(BuildContext context) { - double tWidth = MediaQuery.of(context).size.width - 160; + double tWidth = MediaQuery.of(context).size.width - 130; // FIXME: 消息状态,待完善 String status = ''; if (message!.status == BytedeskConstants.MESSAGE_STATUS_SENDING) { @@ -224,8 +224,8 @@ class MessageWidget extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, children: [ Container( - width: 90.0, - height: 90.0, + width: 80.0, + height: 80.0, child: CachedNetworkImage( imageUrl: imageUrl, ), @@ -258,7 +258,7 @@ class MessageWidget extends StatelessWidget { margin: EdgeInsets.only(top: 10, left: 8), child: Text( '$content', - style: TextStyle(fontSize: 12, color: Colors.grey), + style: TextStyle(fontSize: 12, color: Color(0xFF333333)), maxLines: 1, overflow: TextOverflow.ellipsis, ), @@ -695,7 +695,7 @@ class MessageWidget extends StatelessWidget { margin: EdgeInsets.only(top: 10, left: 8), child: Text( '$content', - style: TextStyle(fontSize: 12, color: Colors.grey), + style: TextStyle(fontSize: 12, color: Color(0xFF333333)), maxLines: 1, overflow: TextOverflow.ellipsis, ), diff --git a/bytedesk_kefu/lib/ui/widget/extra_item.dart b/bytedesk_kefu/lib/ui/widget/extra_item.dart index 45cf38d..51b2008 100644 --- a/bytedesk_kefu/lib/ui/widget/extra_item.dart +++ b/bytedesk_kefu/lib/ui/widget/extra_item.dart @@ -29,7 +29,7 @@ class ExtraItem extends StatelessWidget { print('功能暂未实现') }, child: Padding( - padding: EdgeInsets.only(left: 15, top: 13, right: 15, bottom: 0), + padding: EdgeInsets.only(left: 10, top: 13, right: 10, bottom: 0), child: Column( children: [ Container(