Skip to content

Instantly share code, notes, and snippets.

@yveskalume
Created April 6, 2022 18:22
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 yveskalume/49bb8ad161853d7fdb20f0d7e43025eb to your computer and use it in GitHub Desktop.
Save yveskalume/49bb8ad161853d7fdb20f0d7e43025eb to your computer and use it in GitHub Desktop.
NavHost(startDestination = "screen-a") {
 /*…*/
 composable("screen-b/{post}", arguments = listOf(navArgument("post") { type = PostType() })) {
  val post = it.arguments?.getParcelable<Post>("post")
  ScreenB(post)
 }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment