【发布时间】:2019-07-10 15:57:24
【问题描述】:
是否可以在 Flutter 中将文本包裹在一个圆圈内?这是一个失败的例子。理想情况下,文本将适合圆圈并仅在末尾溢出。
ClipOval(
child: SizedBox.expand(
child: Text(
"Round and round the rugged rocks, the rascally rascals ran. Round and round the rugged rocks, the rascally rascals ran. Round and round the rugged rocks, the rascally rascals ran. Round and round the rugged rocks, the rascally rascals ran. ",
softWrap: true,
overflow: TextOverflow.fade,
),
),
),
【问题讨论】: