anchored_list library

Scroll to any index in a lazy list, instantly and without glitches.

AnchoredList.builder(
  controller: controller,
  itemCount: 100000,
  itemBuilder: (context, index) => ListTile(title: Text('Item $index')),
)

controller.jumpToIndex(84213);

Classes

AnchoredList
A lazy list that can jump to any index instantly.
AnchoredListBinding
The list-side operations a controller drives.
AnchoredListController
Drives an AnchoredList and reports what it is showing.
ItemPosition
Where one item sits in the viewport, as a fraction of viewport extent.