rememberLazyListSnapperLayoutInfo

fun rememberLazyListSnapperLayoutInfo(lazyListState: LazyListState, snapOffsetForItem: (layoutInfo: SnapperLayoutInfo, item: SnapperLayoutItemInfo) -> Int = SnapOffsets.Center, endContentPadding: Dp = 0.dp): LazyListSnapperLayoutInfo(source)

Create and remember a SnapperLayoutInfo which works with LazyListState.

Parameters

lazyListState

The LazyListState to update.

snapOffsetForItem

Block which returns which offset the given item should 'snap' to. See SnapOffsets for provided values.

endContentPadding

The amount of content padding on the end edge of the lazy list in dps (end/bottom depending on the scrolling direction).