Use SuperListView and SuperSliverList as drop-in replacements
mainYou can replace standard Flutter ListView and SliverList with SuperListView and SuperSliverList to gain improved performance for large lists with variable item extents and more predictable scrollbar behavior.
SuperListView works exactly like ListView.builder, and SuperSliverList works with any CustomScrollView configuration using standard delegates.
// SuperListView usage
SuperListView.builder(
itemCount: 1000,
itemBuilder: (context, index) {
return ListTile(title: Text('Item $index'));
},
)
// SuperSliverList usage
CustomScrollView(
slivers: <Widget>[
SuperSliverList(
delegate: SliverChildListDelegate(
<Widget>[
const Text("Item 1"),
const Text('Item 2'),
],
),
),
],
)