Replies: 1 comment 2 replies
-
This might help: |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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 theNavGraphBuilder
-Extension functions, e.g.NavGraphBuilder.interestsGraph
is per se not possible, because we don't have access to thenavController
.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?Thank you for your support!
Beta Was this translation helpful? Give feedback.
All reactions