🌈 Create new beautiful Compose Gradients with our new wesite ->
Function

SnapLayoutInfoProvider

A SnapLayoutInfoProvider for LazyGrids.

SnapLayoutInfoProvider

Source set: Common
public fun SnapLayoutInfoProvider(
    lazyGridState: LazyGridState,
    snapPosition: SnapPosition = SnapPosition.Center,
): SnapLayoutInfoProvider

A SnapLayoutInfoProvider for LazyGrids.

Parameters

lazyGridState The LazyGridState with information about the current state of the grid
snapPosition The desired positioning of the snapped item within the main layout. This position should be considered with regards to the start edge of the item and the placement within the viewport.

Return

A SnapLayoutInfoProvider that can be used with snapFlingBehavior

SnapLayoutInfoProvider

Source set: Common
public fun SnapLayoutInfoProvider(
    lazyListState: LazyListState,
    snapPosition: SnapPosition = SnapPosition.Center,
): SnapLayoutInfoProvider

A SnapLayoutInfoProvider for LazyLists.

Parameters

lazyListState The LazyListState with information about the current state of the list
snapPosition The desired positioning of the snapped item within the main layout. This position should be considered with regard to the start edge of the item and the placement within the viewport.

Return

A SnapLayoutInfoProvider that can be used with snapFlingBehavior