Skip to content

Instantly share code, notes, and snippets.

@fvilarino
Created April 21, 2024 00:07
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 fvilarino/6b736a0c82cd5aec8626a9907366ac63 to your computer and use it in GitHub Desktop.
Save fvilarino/6b736a0c82cd5aec8626a9907366ac63 to your computer and use it in GitHub Desktop.
Shared Elem - NavHost
NavHost(
navController = navController,
startDestination = "list",
modifier = Modifier.fillMaxSize(),
enterTransition = { slideInHorizontally { it } + fadeIn() },
exitTransition = { slideOutHorizontally { -it } + fadeOut() },
popEnterTransition = { slideInHorizontally { -it } + fadeIn() },
popExitTransition = { slideOutHorizontally { it } + fadeOut() },
) {
// omitted
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment