public enum class EnterExitState {
/** The initial state of a custom enter animation in [AnimatedVisibility].. */
PreEnter,
/**
* The `Visible` state is the target state of a custom *enter* animation, also the initial state
* of a custom *exit* animation in [AnimatedVisibility].
*/
Visible,
/** Target state of a custom *exit* animation in [AnimatedVisibility]. */
PostExit,
}
EnterExitState contains the three states that are involved in the enter and exit transition of AnimatedVisibility. More specifically, PreEnter and Visible defines the initial and target state of an enter transition, whereas Visible and PostExit are the initial and target state of an exit transition.
See blow for an example of custom enter/exit animation in AnimatedVisibility using Transition<EnterExitState> (i.e. AnimatedVisibilityScope.transition):
Members
PreEnter
PreEnter
The initial state of a custom enter animation in AnimatedVisibility..
Visible
Visible
The Visible state is the target state of a custom enter animation, also the initial state of a custom exit animation in AnimatedVisibility.
PostExit
PostExit
Target state of a custom exit animation in AnimatedVisibility.