您可以将SingleChildScrollView作为父项,并在内部列表和网格中使用rinkeWrap = true,
SingleChildScrollView(
child: Column(
children: <Widget>[
GridView(
physics: NeverScrollableScrollPhysics(),
shrinkWrap: true, // use it
),
CarouselSlider(...),
ListView.builder(
shrinkWrap: true, // use it
scrollDirection: Axis.horizontal,// this will make your list horizontal scrollable
)
],
),
));
对于CarouselSlider,您可以使用this library。