[更新]
...
SliverFixedExtentList(
itemExtent: 50.0,
delegate: SliverChildBuilderDelegate(
(BuildContext context, int index) {
return Container(
alignment: Alignment.center,
color: Colors.lightBlue[100 * (index % 9)],
child: Text('List Item $index'),
);
},
),
),
...
以前的
你已经在错误中得到了你的答案,你的slivefillremaining不使用slifer,它使用应该是widget的子控件
...
SliverFillRemaining(
hasScrollBody: true,
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(36),
topRight: Radius.circular(36),
),
),
child: Padding(
padding: const EdgeInsets.all(16),
child: ListView.builder(
itemCount: 20,
physics: NeverScrollableScrollPhysics(), //adding this line will disable the scrolling and listview and so the CustomScrollView should work as a single scroll view
itemBuilder: (_, __) => ListTile(
title: Text("Item"),
),
),
),
),
),
...