AnimatedVisibilityScope
The receiver of an animated container's content.
The container is a Foundation layout, so the content takes the ConstrainedScope modifiers.
The content stays mounted until every animation registered on transition has finished, including the content's own:
AnimatedVisibility(visible = expanded) {
val inset by transition.animateInt { if (it == EnterExitState.Visible) 16 else 0 }
Label(text = "Details", modifier = SwingModifier.emptyBorder(inset))
}Content copied to clipboard
Inheritors
Properties
Functions
Link copied to clipboard
@Composable
A container inside a Foundation layout that animates between the contents of its states.
Link copied to clipboard
@Composable
@Composable
The MutableTransitionState counterpart of the Boolean overload inside a Foundation layout.
Link copied to clipboard
open fun SwingModifier.animateEnterExit(enter: EnterTransition = fadeIn(), exit: ExitTransition = fadeOut(), label: String = "animateEnterExit"): SwingModifier
Gives this component its own enter and exit, running on transition and combined with the container's. The container stays mounted until this component has finished animating too.
Link copied to clipboard