Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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