positioned_list library

A drop-in replacement for the scrollable_positioned_list API, built on SuperSliverList.

Classes

AnimationHandle
Handle for a running animation started by ListController.animateToItem or ListController.scrollToIndex.
EstimateRefreshStats
Cumulative cost of refreshing estimated extents and rebuilding the offset index of one list, read through ListController.estimateRefreshStats.
HeaderAnchorHandle
A temporary layout constraint for a mounted header in a vertical list.
ItemPosition
Position of a laid out item relative to the viewport.
ItemPositionsListener
Reports the positions of the visible items of a ScrollablePositionedList.
ItemScrollController
Jumps or scrolls a ScrollablePositionedList to an item.
ListAnchor
The item at the leading edge of the viewport and how far the viewport edge is inside it.
ListController
ScrollablePositionedList
A scrollable list that can jump or animate to an item by index and reports which items are visible, with the API of scrollable_positioned_list.
ScrollOffsetController
Scrolls a ScrollablePositionedList by a number of pixels.
ScrollOffsetListener
Reports scroll offset changes of a ScrollablePositionedList.
StickTarget
Describes what the scroll view should stick to.
SuperSliverList
Drop-in replacement for SliverList that can handle arbitrary large amount of items with variable extent.

Enums

OverscrollToTarget
Whether a jump to an index may leave blank space where the content does not reach, so that the target lands exactly at its alignment.

Typedefs

CrossAxisLayoutKey = Object? Function(double crossAxisExtent)
Maps the cross axis extent available to the items to a value that changes whenever their main axis extents may change, for example (width) => math.min(width, maxColumnWidth).
ItemExtentEstimator = double Function(int index, double crossAxisExtent)
Estimates the main axis extent of the item at index before it is laid out, for a list whose cross axis extent is crossAxisExtent. Called for every item that has not been measured yet, so it must be cheap.
TargetRectResolver = Rect? Function(int index, RenderBox box)
Resolves a target area in a laid-out item's local coordinates.