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(