Skip to content

Instantly share code, notes, and snippets.

@olshevski
Last active February 4, 2022 10:03
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 olshevski/48d3bc7ac55322d99c9bc4e30e819bc5 to your computer and use it in GitHub Desktop.
Save olshevski/48d3bc7ac55322d99c9bc4e30e819bc5 to your computer and use it in GitHub Desktop.
For "Compose Navigation Reimagined" blogpost on Medium
sealed class Screen : Parcelable {
@Parcelize
object First : Screen()
@Parcelize
data class Second(val id: Int) : Screen()
@Parcelize
data class Third(val text: String) : Screen()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment