SnapOffsets

object SnapOffsets

Contains a number of values which can be used for the snapOffsetForItem parameter on rememberLazyListSnapperLayoutInfo and LazyListSnapperLayoutInfo.

Properties

Link copied to clipboard
val Center: (SnapperLayoutInfo, SnapperLayoutItemInfo) -> Int

Snap offset which results in the item snapping in the center of the scrolling viewport of the lazy list.

Link copied to clipboard
val End: (SnapperLayoutInfo, SnapperLayoutItemInfo) -> Int

Snap offset which results in the end edge of the item, snapping to the end scrolling edge of the lazy list.

Link copied to clipboard
val Start: (SnapperLayoutInfo, SnapperLayoutItemInfo) -> Int

Snap offset which results in the start edge of the item, snapping to the start scrolling edge of the lazy list.

Sources

Link copied to clipboard