如何设置溢出的长度:TextOverflow.ellipsis 因为它截断了您在 img 中看到的文本。文本“这是第一个......”和数字“#1520”之间有一个空格。溢出会截断“第一个...”单词之后的文本。
我希望“现在卡”字样将显示在行中。怎么解决?,谢谢
Container(
color: Colors.grey,
child: ListTile(
title: Container(
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Flexible(child: Text('This is the first card now its time sad sad sad sads ad sdsadsads dsa dsad asdasdasd', overflow: TextOverflow.ellipsis, style: TextStyle(color: Colors.white),)),
Flexible(child: Text('#1520', overflow: TextOverflow.ellipsis, style: TextStyle(color: Colors.white),)),
],
),
),
),
),
我不希望我的所有文字都可见,我只想在一行中显示一些单词。如果您查看 img,您会看到文本和 #1520 之间有一个空白区域。我想使用溢出显示:这是现在的第一张卡片.. #1520