Skip to content

Instantly share code, notes, and snippets.

@skydoves
Created April 19, 2024 06:26
Show Gist options
  • Save skydoves/82451a7370e0001b1514c603df2bb780 to your computer and use it in GitHub Desktop.
Save skydoves/82451a7370e0001b1514c603df2bb780 to your computer and use it in GitHub Desktop.
sample_nav_animation1
@Composable
fun NavigationComposeShared() {
SharedTransitionLayout {
val navController = rememberNavController()
NavHost(navController = navController, startDestination = "home") {
composable(route = "home") {
}
composable(
route = "details/{pokemon}",
arguments = listOf(navArgument("pokemon") { type = NavType.IntType })
)
{ backStackEntry ->
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment