can't find transition animation function in NavGra...
# compose
p
can't find transition animation function in NavGraphBuilder
Copy code
public fun NavGraphBuilder.composable(
    route: String,
    arguments: List<NamedNavArgument> = emptyList(),
    deepLinks: List<NavDeepLink> = emptyList(),
    enterTransition: (@JvmSuppressWildcards
        AnimatedContentTransitionScope<NavBackStackEntry>.() -> EnterTransition?)? = null,
    exitTransition: (@JvmSuppressWildcards
        AnimatedContentTransitionScope<NavBackStackEntry>.() -> ExitTransition?)? = null,
    popEnterTransition: (@JvmSuppressWildcards
        AnimatedContentTransitionScope<NavBackStackEntry>.() -> EnterTransition?)? =
            enterTransition,
    popExitTransition: (@JvmSuppressWildcards
        AnimatedContentTransitionScope<NavBackStackEntry>.() -> ExitTransition?)? =
            exitTransition,
    content: @Composable AnimatedContentScope.(NavBackStackEntry) -> Unit
)
this one is it changed or something i am using 2.7.7 it does not make sense my old project with save version has this function but my current project is missing it. Please can someone help
i
It is still there, it hasn't changed. Do you have the right import? You want the
androidx.navigation.compose.composable
one
p
yes that's why it doesn't make any sense my NavGraphBuilder file does not have the function defined....I did upgraded the vertion to "2.8.0-beta05" i also tried downgrading to 2.7.7
hay can you pls tell me how to fix it