【发布时间】:2022-11-14 00:30:20
【问题描述】:
我在 Sized 框中有一个 SingleChildScrollView。我认为这会使我的页面可滚动,但事实并非如此。我运行它时得到这个
我有代码
Container(
width: double.infinity,
alignment: Alignment.centerLeft,
child: Column(
children: [
const SizedBox(
width: double.infinity,
child: some text
),
const SizedBox(height: 10),
SizedBox(
width: double.infinity,
child: SingleChildScrollView(
child: Column(
children: items
.map((e) => ListTile(
most recent items
))
.toList(),
),
)),
],
))
【问题讨论】:
标签: flutter dart flutter-layout