Skip to content

Instantly share code, notes, and snippets.

@appspell
Created May 11, 2021 07:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save appspell/71331e09f18af04998af660a85b39cb6 to your computer and use it in GitHub Desktop.
Save appspell/71331e09f18af04998af660a85b39cb6 to your computer and use it in GitHub Desktop.
setContent {
val navController = rememberNavController()
NavHost(navController, startDestination = NavigationDestination.Screen1.destination) {
composable(NavigationDestination.Screen1.destination) {
Screen1()
}
composable(NavigationDestination.Screen2.destination) {
Screen2()
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment