我正在努力使小部件居中listView。
我确实喜欢这样,但Text('ABC')没有垂直居中。我该如何实现?
new Scaffold(
appBar: new AppBar(),
body: new ListView(
padding: const EdgeInsets.all(20.0),
children: [
new Center(
child: new Text('ABC')
)
]
)
);
Run Code Online (Sandbox Code Playgroud)