Property

LocalNavAnimatedContentScope

Local provider of AnimatedContentScope to NavEntry.Content.

Source set: Common
public val LocalNavAnimatedContentScope: ProvidableCompositionLocal<AnimatedContentScope> =
    compositionLocalOf {
        // no default, we need an AnimatedContent to get the AnimatedContentScope
        throw IllegalStateException(
            "Unexpected access to LocalNavAnimatedContentScope. You should only " +
                "access LocalNavAnimatedContentScope inside a NavEntry passed " +
                "to NavDisplay. AnimatedContentScope in OverlayScenes are no-op."
        )
    }

Local provider of AnimatedContentScope to NavEntry.Content.

This does not have a default value since the AnimatedContentScope is provided at runtime by AnimatedContent.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: