【发布时间】:2019-09-22 09:28:12
【问题描述】:
我正在尝试设置两行文本之间的间距,但我无法做到。现在,两条线相互渲染,但我想要一些我可以调整的间距。我曾尝试使用 Spacer 小部件,但这会使间距过大。有一个更好的方法吗?
Expanded(
child: Column(
children: <Widget>[
Text("We're finding your pizza.",
style: theme.textTheme.body1.copyWith(fontSize: 18)),
Text(
"We'll send you a notification.",
textAlign: TextAlign.center,
style: theme.textTheme.body1.copyWith(fontSize: 18)),
],
),
),
【问题讨论】:
-
使用
SizedBox(height: 20)
标签: flutter dart flutter-layout