DefaultDecorator
Functions
Link copied to clipboard
open override fun AnimatedContentScope.Decoration(targetState: NavigatorDefaults.DefaultDecorator.DefaultAnimatedState<T>, innerContent: @Composable (T) -> Unit)
For the targetState, decorate the innerContent as the content
of AnimatedContent
Link copied to clipboard
open override fun targetState(args: ImmutableList<T>): NavigatorDefaults.DefaultDecorator.DefaultAnimatedState<T>
For the args create the expected target AnimatedNavState.
Link copied to clipboard
open override fun AnimatedContentTransitionScope<AnimatedNavState>.transitionSpec(animatedNavEvent: AnimatedNavEvent): ContentTransform
Builds the default AnimatedContent transition spec.
Link copied to clipboard
open override fun updateTransition(args: ImmutableList<T>): Transition<NavigatorDefaults.DefaultDecorator.DefaultAnimatedState<T>>
Sets up a Transition for driving an AnimatedContent used to navigate between screens. The transition should be setup from the current NavDecoration.DecoratedContent arguments, and then updated when the arguments change.