mattinger
09/28/2021, 1:55 PMAnimatedNavHost(
navController = navController,
startDestination = router.currentStep.id,
exitTransition = { _, _ ->
slideOutOfContainer(
AnimatedContentScope.SlideDirection.Left,
animationSpec = tween(700)
)
},
enterTransition = { _, _ ->
slideIntoContainer(
AnimatedContentScope.SlideDirection.Left,
animationSpec = tween(700)
)
})
However, not a single one of my transitions is animated. It all still seems to just pop in and out like it would with the standard NavHost. (as a side note, i’ve tried putting animation specs in the composable function as well for the individual routes with no luck.Ian Lake
09/28/2021, 2:34 PMmattinger
09/28/2021, 2:38 PMmattinger
09/28/2021, 2:39 PMIan Lake
09/28/2021, 2:42 PMIan Lake
09/28/2021, 2:42 PMmattinger
09/28/2021, 2:47 PMmattinger
09/28/2021, 2:57 PMIan Lake
09/28/2021, 4:47 PMnavigate()
, not how you build your graph. Making sure you aren't calling it as part of composition would be the main thing to look atIan Lake
09/28/2021, 4:48 PM