You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I have a simple Compose Multiplatform app where I want to migrate from the NavHost to Voyager.
The point is that I didnt get the idea about the basic skeleton regarding the Scaffold structure.
My idea was just to replace my NavHost with the Navigator and try to use it, but Im getting an exception from LocalNavigator.currentOrThrow and its because Im calling it outside the Navigator.
So, I could not find a proper example about how to have the fixed Scaffold and make the navigation happen inside (like I had in my code). Because I could wrap everything inside a Navigator, but in the end, the placeholder where navigation should take place is deep inside my Composables
I dont get exactly what are the HomeScreen and the CurrentScreen... Seems like things are out of order.
And what inside the Scaffold content, I have stuff, like the NavigationDrawer, which adds another layer?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello. I have a simple Compose Multiplatform app where I want to migrate from the NavHost to Voyager.
The point is that I didnt get the idea about the basic skeleton regarding the Scaffold structure.
In my current project I have:
My idea was just to replace my NavHost with the Navigator and try to use it, but Im getting an exception from LocalNavigator.currentOrThrow and its because Im calling it outside the Navigator.
So, I could not find a proper example about how to have the fixed Scaffold and make the navigation happen inside (like I had in my code). Because I could wrap everything inside a Navigator, but in the end, the placeholder where navigation should take place is deep inside my Composables
According with the only example I found at docs:
I dont get exactly what are the HomeScreen and the CurrentScreen... Seems like things are out of order.
And what inside the Scaffold content, I have stuff, like the NavigationDrawer, which adds another layer?
Thanks for the help.
Beta Was this translation helpful? Give feedback.
All reactions