Composable Destinations & Routes
Register each screen as a route.
Screens as Destinations
Every screen in your graph is a destination. You register one with the composable builder inside the NavHost, naming it with a route.
composable("home") { HomeScreen() }What a Route Really Is
A route is a unique string key for a destination. Compose matches the string you navigate to against the routes you declared.
All lessons in this course
- NavController & NavHost
- Composable Destinations & Routes
- Passing Arguments Between Screens
- Back Stack & Deep Links