Thread
#compose
    Florian

    Florian

    11 months ago
    How can I get rid of compose-navigation's cross-fade animation? It doesn't work well with 1. hiding bottom bars, 2. per-screen scaffolds. I can use Accompanist, but I don't wanna set the transition to null in each single
    composable
    path 😣.
    cb

    cb

    11 months ago
    I can use Accompanist, but I don't wanna set the transition to null in each single 
    composable
     path
    You don't need to. You can set the default transition (i.e. null) on the
    AnimatedNavHost
    sindrenm

    sindrenm

    11 months ago
    Also, a side note: Setting it to
    null
    on each
    composable()
    wouldn't work, right? Since that would then default up to whatever's set on the
    AnimatedNavHost
    , which is the fadeIn/fadeOut.
    Florian

    Florian

    11 months ago
    null was just a placeholder for whatever I would have to pass 😆
    thank you @cb that's great
    but how exactly do I do that?
    pass enter/exit/pop to the AnimatedNavHost?
    and what value? null does indeed not work
    AnimatedNavHost(
        navController = navController,
        startDestination = bottomNavDestinations[0].route,
        modifier = modifier,
        enterTransition = {_,_ -> EnterTransition.None },
        exitTransition = {_,_ -> ExitTransition.None },
        popEnterTransition = {_,_ -> EnterTransition.None },
        popExitTransition = {_,_ -> ExitTransition.None },
    )
    Is this the way?
    cb

    cb

    11 months ago
    Yep, looks good to me
    Florian

    Florian

    11 months ago
    thank you very much @cb