限制商品标题为2行,超出省略

master
章文轩 2 years ago
parent db695f53b4
commit b6596fc599

@ -88,7 +88,7 @@ class _ChatTypePageState extends State<ChatTypePage> {
// 500 // 500
var custom = json.encode({ var custom = json.encode({
"type": BytedeskConstants.MESSAGE_TYPE_COMMODITY, // "type": BytedeskConstants.MESSAGE_TYPE_COMMODITY, //
"title": "商品标题", // , "title": "商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题", // ,
"content": "商品详情", // , "content": "商品详情", // ,
"price": "9.99", // , "price": "9.99", // ,
"url": "url":
@ -112,7 +112,7 @@ class _ChatTypePageState extends State<ChatTypePage> {
// 500 // 500
var custom = json.encode({ var custom = json.encode({
"type": BytedeskConstants.MESSAGE_TYPE_COMMODITY, // "type": BytedeskConstants.MESSAGE_TYPE_COMMODITY, //
"title": "商品标题", // , "title": "商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题", // ,
"content": "商品详情", // , "content": "商品详情", // ,
"price": "9.99", // , "price": "9.99", // ,
"url": "url":

@ -620,7 +620,7 @@ class _ChatKFPageState extends State<ChatKFPage>
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ 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,), SizedBox(height: 8,),
Row( Row(
children: [ children: [

Loading…
Cancel
Save