From b6596fc599f6af6d2f0077583ee2aacff144f89a 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, 29 Aug 2022 15:10:55 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=90=E5=88=B6=E5=95=86=E5=93=81=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E4=B8=BA2=E8=A1=8C=EF=BC=8C=E8=B6=85=E5=87=BA?= =?UTF-8?q?=E7=9C=81=E7=95=A5?= 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/page/chat_kf_page.dart | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bytedesk_demo/lib/page/chat_type_page.dart b/bytedesk_demo/lib/page/chat_type_page.dart index 358f555..ad36f7f 100755 --- a/bytedesk_demo/lib/page/chat_type_page.dart +++ b/bytedesk_demo/lib/page/chat_type_page.dart @@ -88,7 +88,7 @@ class _ChatTypePageState extends State { // 注意:长度不能大于500字符 var custom = json.encode({ "type": BytedeskConstants.MESSAGE_TYPE_COMMODITY, // 不能修改 - "title": "商品标题", // 可自定义, 类型为字符串 + "title": "商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题", // 可自定义, 类型为字符串 "content": "商品详情", // 可自定义, 类型为字符串 "price": "9.99", // 可自定义, 类型为字符串 "url": @@ -112,7 +112,7 @@ class _ChatTypePageState extends State { // 注意:长度不能大于500字符 var custom = json.encode({ "type": BytedeskConstants.MESSAGE_TYPE_COMMODITY, // 不能修改 - "title": "商品标题", // 可自定义, 类型为字符串 + "title": "商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题", // 可自定义, 类型为字符串 "content": "商品详情", // 可自定义, 类型为字符串 "price": "9.99", // 可自定义, 类型为字符串 "url": 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 3a5f45c..943547a 100755 --- a/bytedesk_kefu/lib/ui/chat/page/chat_kf_page.dart +++ b/bytedesk_kefu/lib/ui/chat/page/chat_kf_page.dart @@ -620,7 +620,7 @@ class _ChatKFPageState extends State mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text(goodName,style: TextStyle(color: Color(0xFF333333),fontSize: 15),), + SizedBox(child: Text(goodName,style: TextStyle(color: Color(0xFF333333),fontSize: 15),maxLines: 2,overflow: TextOverflow.ellipsis,),width: 240,), SizedBox(height: 8,), Row( children: [