LazyGridItemScope


Receiver scope being used by the item content parameter of LazyVerticalGrid.

Summary

Public functions

Modifier

This modifier animates the item placement within the Lazy grid.

Cmn

Public functions

animateItemPlacement

@ExperimentalFoundationApi
fun Modifier.animateItemPlacement(
    animationSpec: FiniteAnimationSpec<IntOffset> = spring( stiffness = Spring.StiffnessMediumLow, visibilityThreshold = IntOffset.VisibilityThreshold )
): Modifier

This modifier animates the item placement within the Lazy grid.

When you provide a key via LazyGridScope.item/LazyGridScope.items this modifier will enable item reordering animations. Aside from item reordering all other position changes caused by events like arrangement changes will also be animated.

Parameters
animationSpec: FiniteAnimationSpec<IntOffset> = spring( stiffness = Spring.StiffnessMediumLow, visibilityThreshold = IntOffset.VisibilityThreshold )

a finite animation that will be used to animate the item placement.