你可以只使用textAlign财产
Text(
"The quick brown fox jumps over the lazy dog",
textAlign: TextAlign.center,
style: TextStyle(fontSize: 20.0),
)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
507 次 |
| 最近记录: |