首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
V2EX 提问指南
广告
V2EX
›
问与答
Flutter 中使用 ui.ParagraphBuilder 怎么让文字换行?
leeggco
·
2021-04-08 18:00:34 +08:00
· 676 次点击
这是一个创建于 1106 天前的主题,其中的信息可能已经有所发展或是发生改变。
如图:
https://imgur.com/bkyi6Fl
flutter
文字
paragraphbuilder
使用
2 条回复
•
2021-04-09 10:19:51 +08:00
1
messnoTrace
2021-04-08 19:28:26 +08:00
我记得是能设置 style 的,然后还能设置 ParagraphConstraints 的
2
leeggco
OP
2021-04-09 10:19:51 +08:00
@
messnoTrace
#1 确实,设置了 ui.ParagraphConstraints(width: MaxLabelWidth) 就可以换行了,谢谢!
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
我们的愿景
·
实用小工具
·
3422 人在线
最高记录 6543
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 26ms ·
UTC 11:28
·
PVG 19:28
·
LAX 04:28
·
JFK 07:28
Developed with
CodeLauncher
♥ Do have faith in what you're doing.