Package-level declarations

Types

Link copied to clipboard
data class AnimatedSpacingColumnAnimation(val animationSpec: FiniteAnimationSpec<Float> = spring(), val fade: Boolean = true, val expandFrom: Alignment.Vertical = Alignment.Top, val shrinkTowards: Alignment.Vertical = Alignment.Top)

Visibility-animation configuration for AnimatedSpacingColumn. A child inherits its container's instance unless it supplies this type to AnimatedSpacingColumnScope.AnimatedVisibility.

Link copied to clipboard

Receiver scope for AnimatedSpacingColumn. It provides the standard ColumnScope parent-data modifiers together with visibility whose size, spacing, fade, and weighted allocation share one animation progress.

Link copied to clipboard
data class AnimatedSpacingRowAnimation(val animationSpec: FiniteAnimationSpec<Float> = spring(), val fade: Boolean = true, val expandFrom: Alignment.Horizontal = Alignment.Start, val shrinkTowards: Alignment.Horizontal = Alignment.Start)

Visibility-animation configuration for AnimatedSpacingRow. A child inherits its container's instance unless it supplies this type to AnimatedSpacingRowScope.AnimatedVisibility.

Link copied to clipboard

Receiver scope for AnimatedSpacingRow. It provides the standard RowScope parent-data modifiers together with visibility whose size, spacing, fade, and weighted allocation share one animation progress.

Link copied to clipboard
@RequiresOptIn(message = "Animated spacing layout APIs are experimental and may change without notice.", level = RequiresOptIn.Level.WARNING)
annotation class ExperimentalAnimatedSpacingApi

Marks animated spacing layout APIs whose names, measurement semantics, or weight redistribution behavior may change based on usage feedback.

Functions

Link copied to clipboard
fun AnimatedSpacingColumn(spacing: Dp, modifier: Modifier = Modifier, horizontalAlignment: Alignment.Horizontal = Alignment.Start, animation: AnimatedSpacingColumnAnimation = AnimatedSpacingColumnAnimation(), content: @Composable AnimatedSpacingColumnScope.() -> Unit)

Places children vertically and animates both a child's occupied height and its surrounding spacing when the child is emitted by AnimatedSpacingColumnScope.AnimatedVisibility.

Link copied to clipboard
fun AnimatedSpacingRow(spacing: Dp, modifier: Modifier = Modifier, verticalAlignment: Alignment.Vertical = Alignment.Top, animation: AnimatedSpacingRowAnimation = AnimatedSpacingRowAnimation(), content: @Composable AnimatedSpacingRowScope.() -> Unit)

Places children horizontally and animates both a child's occupied width and its surrounding spacing when the child is emitted by AnimatedSpacingRowScope.AnimatedVisibility.