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
Hi there!
First, I'd like to thank you for this sample app! It seems simple from a functionality point of view, but it provides some helpful examples to solve big team/complexity challenges.
For someone who is doing Android for a while now, but is kind of new to Compose, I'm currently struggling with the navigation stuff. As far as I can see the app has only one screen per feature module. With the provided navigation concept it's fairly easy to navigate between the top level screens. But I have a hard time to figure out how to navigate between multiple screens within a feature module, because I don't have access to the navController within the module.
With the NIA-Navigation concept, how would you solve the following screenflow:
A user can navigate from a home screen to a "Quizz" (that's a no-brainer). The Quizz is a feature module with an
Now, I don't see any reason why the NavHost should handle the self contained navigation within this feature module. IMHO it should only handle navigation between features, but not navigation within features. Doing the navigation within the NavGraphBuilder-Extension functions, e.g. NavGraphBuilder.interestsGraph is per se not possible, because we don't have access to the navController.
The question is: How would solve this? Would you pass the appState to the navGraph extension functions? Or is there a mechanism I'm not aware of?
Hm, how does this answer my question? #693 is about large screen support and combining different feature modules on one screen #701 is also about large screens
I have a self contained screenflow inside one feature module and wonder how you would navigate between those screen without passing down the navController or letting the app module controll the navigation for a feature module.
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi there!
First, I'd like to thank you for this sample app! It seems simple from a functionality point of view, but it provides some helpful examples to solve big team/complexity challenges.
For someone who is doing Android for a while now, but is kind of new to Compose, I'm currently struggling with the navigation stuff. As far as I can see the app has only one screen per feature module. With the provided navigation concept it's fairly easy to navigate between the top level screens. But I have a hard time to figure out how to navigate between multiple screens within a feature module, because I don't have access to the navController within the module.
With the NIA-Navigation concept, how would you solve the following screenflow:
A user can navigate from a home screen to a "Quizz" (that's a no-brainer). The Quizz is a feature module with an
Now, I don't see any reason why the
NavHostshould handle the self contained navigation within this feature module. IMHO it should only handle navigation between features, but not navigation within features. Doing the navigation within theNavGraphBuilder-Extension functions, e.g.NavGraphBuilder.interestsGraphis per se not possible, because we don't have access to thenavController.The question is: How would solve this? Would you pass the
appStateto the navGraph extension functions? Or is there a mechanism I'm not aware of?Thank you for your support!
All reactions