I want to create an infinite scrollable list like it is possible to do with ListView.builder
:
ListView.builder(
itemBuilder: (context, index) => Text(index.toString()),
);
But doing so only creates an infinite list in "one direction" (down): index
can only be 0 <= index
.
I would like to also be able to scroll up which would be equivalent to having an index
being possibly negative.
Is there any built-in widget for that? I couldn't find anything, even among the slivers: