AnimatedSpacingRowAnimation

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.

fade is a temporary API for the only additional visual effect currently supported. It is expected to be replaced by Compose-native enter/exit transitions once the project can depend on transition configuration that allows size-changing expand and shrink transitions to be rejected safely.

Parameters

animationSpec

animation used for the presence progress that drives structural sizing, spacing, and fade.

fade

whether to apply that progress as alpha in addition to structural clipping.

expandFrom

logical or absolute alignment from which content is structurally revealed while entering.

shrinkTowards

logical or absolute alignment towards which content structurally collapses while exiting.

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard