Skip to content

Instantly share code, notes, and snippets.

@merttoptas
Created March 19, 2023 19:59
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 merttoptas/35463cec32190246e84bdd49a74eae0f to your computer and use it in GitHub Desktop.
Save merttoptas/35463cec32190246e84bdd49a74eae0f to your computer and use it in GitHub Desktop.
const val homeNavigationRoute = "home_route"
fun NavController.navigateHomeScreen(navOptions: NavOptions? = null) {
this.navigate(homeNavigationRoute, navOptions)
}
fun NavGraphBuilder.homeScreen() {
composable(route = homeNavigationRoute) {
HomeScreenRoute()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment