Does exist any official github sample project of n...
# compose
p
Does exist any official github sample project of navigation (navcontroller, navhost, the enum with the routes) with compose for a list detail style app? The app haves first a list with categories, then, each category opens a new list with places, and then when you click on the place the detail must be displayed. It seems simple, but I'm getting stuck to realize how to reuse the list screen for both categories and places, and how to manage this with navigation. Is for developing this project of this guide, but unfortunatelly it doesn't have a solution code: https://developer.android.com/codelabs/basic-android-kotlin-compose-my-city#3 Thank you.
s
https://github.com/android/nowinandroid is a great example of a fully functioning app with navigation setup and everything.
i
You might also watch the talk specifically about large screens and Navigation - we cover list/detail in the second half of that as well:

https://www.youtube.com/watch?v=LTLQhC6VadI

p
@Stylianos Gakis where is the similar part of the app to the things I asked for?
s
There’s no need to tag me again in a thread I am already part of, I can see your message anyway. That app shows how to setup an entire project with navigation and everything. Along with using a data layer to have the source of truth for the information outside of your UI layer and with anything to do with navigation. From there if you setup your navigation graph to have this list and details it’s just a matter of asking for the right data from your data layer. Then you can watch the video by Ian for even more specific guidance on this