nglauber
08/10/2021, 6:37 PMNavHost
by AnimatedNavHost
, but I’m having an issue…
Using NavHost
I have this structure:
@Composable
fun AppNavHost(...){
val navController = rememberNavController()
NavHost(navController = navController, ...) {
composable("A") { ScreenA() }
composable("B") { Feature1NavHost() }
}
}
In Feature1NavHost
I have another NavHost
which takes control of the feature navigation. So, ScreenA
calls “B” and pops out of the stack. Everything works fine here.
Using AnimatedNavHost
, when I press back in the first screen of Feature1NavHost
, the display blinks and the application does not finish… 😕 I have to press a lot to close the app.Ian Lake
08/10/2021, 6:50 PMChris Miller
08/10/2021, 6:51 PMval navController = rememberAnimatedNavController()
nglauber
08/10/2021, 6:51 PM2.4.0-alpha06
and accompanist 0.16.1
NavHost
😉Ian Lake
08/10/2021, 6:53 PMnglauber
08/10/2021, 7:09 PMcomposeAccompanistVersion = '0.14.0'
composeActivityVersion = '1.3.0-rc01'
composeNavigationVersion = '2.4.0-alpha04'
composeVersion = '1.0.0-rc02'
I’ll update the libraries and let you know…composeAccompanistVersion = '0.16.1'
composeActivityVersion = '1.3.1'
composeNavigationVersion = '2.4.0-alpha06'
composeVersion = '1.0.1'
does not work 😕 it does not even open the nested graphIan Lake
08/10/2021, 7:25 PMnavigate
as part of composition - any animations will cause you to recompose multiple times (and you really don't want to navigate every frame of your animation)nglauber
08/10/2021, 7:29 PMnavigate
in the composition… 🤦♂️ thanks @Ian LakeIan Lake
08/10/2021, 7:37 PMnglauber
08/10/2021, 7:38 PMIan Lake
08/10/2021, 7:49 PM