StackItemScope


sealed interface StackItemScope


Receiver scope used by item content in VerticalStack.

Summary

Public functions

open Modifier

Adds a decoration shape for this item, which is used in transition animations (to clip items behind) and depth effect.

Public functions

itemDecoration

open fun Modifier.itemDecoration(shape: Shape): Modifier

Adds a decoration shape for this item, which is used in transition animations (to clip items behind) and depth effect. Each item must have its decoration shape set, as otherwise the clipping and depth will not be applied.

Parameters
shape: Shape

The shape of this stack item.