【发布时间】:2022-01-20 12:51:18
【问题描述】:
我的 SingleChildScrollView 看起来像这样:
Widget build(BuildContext context) {
return SingleChildScrollView(
physics: BouncingScrollPhysics(),
scrollDirection: Axis.vertical,
child: Container(
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
// ... some other widgets come here ...
CommunityListView(),
],
),
),
);
}
其中的 CommunityListView() 是另一个 SingleChildScrollView。我的问题是,一旦在 CommunityListView() 内滚动,我就无法摆脱它并且用户被困在这个 ScrollView 中。
有人知道我该如何解决吗? 谢谢!
【问题讨论】:
-
为什么需要 2 个可滚动的小部件?
标签: flutter dart singlechildscrollview