StackItemScope


public sealed interface StackItemScope


Receiver scope used by item content in VerticalStack.

Summary

Public methods

default @NonNull Modifier

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

Public methods

itemDecoration

Added in 1.0.0-alpha01
default @NonNull Modifier itemDecoration(@NonNull Modifier receiver, @NonNull Shape shape)

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
@NonNull Shape shape

The shape of this stack item.