Есть вложенные прокручиваемые виджеты, CustomScrollView
, которые позволяют Щепкам достичь того, что вы ищете.SliverGrid и SliverList - это то, что вам нужно для достижения вашей цели:
Widget sliverScroll() {
return CustomScrollView(
slivers: <Widget>[
SliverGrid(
delegate: SliverChildBuilderDelegate((context, index) {
return Container();
}, childCount: 9),
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 3),
),
SliverList(
delegate: SliverChildBuilderDelegate((context, index) {
return Container();
}, childCount: 6),
),
],
);
}
Вы можете настроить по своему желанию, изменив порядок или количество, количество предметов и т. Д.