Is it possible to use ListView.builder
(or something similar) inside of a CustomScrollView
? I have a CustomScrollView
like this:
return Scaffold(
body: CustomScrollView(
slivers: [
SliverAppBar(...),
SliverList(delegate: SliverChildListDelegate(children))
],
),
);
This works great, but in my actual scenario the list could have thousands of items, so I do not want to pass them all in to SliverChildListDelegate
. I want to use ListView.builder
(or something similar) to build the items as they are scrolled into view. I was expecting there to be a .builder
constructor on either SliverList
or SliverChildListDelegate
but I don't see anything like that. Am I missing something?