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: [