TransformingLazyColumnDefaults

object TransformingLazyColumnDefaults


Contains the default values used by TransformingLazyColumn

Summary

Public functions

FlingBehavior
@Composable
snapFlingBehavior(
    state: TransformingLazyColumnState,
    snapOffset: Dp,
    decay: DecayAnimationSpec<Float>
)

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

Public functions

snapFlingBehavior

Added in 1.6.0-alpha08
@Composable
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: TransformingLazyColumnState

the state of the TransformingLazyColumn

snapOffset: Dp = 0.dp

an optional offset to be applied when snapping the item. After the snap the snapped items offset will be snapOffset.

decay: DecayAnimationSpec<Float> = exponentialDecay()

the decay to use