Discuz!NT|BBS|论坛

注册

 

发新话题 回复该主题

flutter的row多行文本显示 [复制链接]

1#
            new Row(
                children: <Widget>[

    Expanded(child: Container(
    alignment: Alignment.centerLeft,
    width: double.infinity,
    margin: EdgeInsets.only(left: 5),
    child: Text(list[index].MSG_MX,
    style: TextStyle(
    fontSize: 14,
    color: Colors.black45,
    fontWeight: FontWeight.normal),
    maxLines: 3,
    overflow: TextOverflow.ellipsis,
    )),)

                ]),
分享 转发
TOP
发新话题 回复该主题