Lazy List Snapper Layout Info
A SnapperLayoutInfo which works with LazyListState. Typically this would be remembered using rememberLazyListSnapperLayoutInfo.
Parameters
The LazyListState to update.
Block which returns which offset the given item should 'snap' to. See SnapOffsets for provided values.
The amount of content padding on the end edge of the lazy list in pixels (end/bottom depending on the scrolling direction).
Constructors
Functions
Returns true if the layout has some scroll range remaining to scroll towards the end.
Returns true if the layout has some scroll range remaining to scroll towards the start.
Calculate the desired target which should be scrolled to for the given velocity.
Calculate the distance in pixels needed to scroll to the given index. The value returned signifies which direction to scroll in: