Object

TransformingLazyColumnDefaults

Contains the default values used by TransformingLazyColumn

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Android
public object TransformingLazyColumnDefaults

Contains the default values used by TransformingLazyColumn

Functions

snapFlingBehavior

@Composable
public fun snapFlingBehavior(
    state: TransformingLazyColumnState,
    snapOffset: Dp = 0.dp,
    decay: DecayAnimationSpec<Float> = exponentialDecay(),
): FlingBehavior

Create and remember a FlingBehavior that will represent natural fling curve with snap to central item as the fling decays.

Parameters

state the state of the TransformingLazyColumn
snapOffset an optional offset to be applied when snapping the item. Defines the distance from the center of the scrollable to the center of the snapped item.
decay the decay to use