【发布时间】:2020-08-15 21:11:14
【问题描述】:
我正在尝试制作我的第一个颤振网页。 我想在顶部和可滚动区域制作导航应用栏,下面有图片和文字。 我在重新调整我的页面时遇到了问题。我的页面正文没有滚动,它在底部溢出。我做错了什么? 这是我的示例代码:
@override
Widget build(BuildContext context) {
return Column(
children: [
TopBar(),
SingleChildScrollView(
child: Column(
children: [
Container(
height: 300,
color: Colors.red,
),
Container(
height: 300,
color: Colors.green,
),
Container(
height: 300,
color: Colors.black,
)
],
),
)
],
);
}
}
【问题讨论】:
标签: flutter scroll flutter-layout flutter-web