Skip to content

Commit

Permalink
Fix README screen configuration declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
xxfast authored May 29, 2023
1 parent 28d30b9 commit 1592eff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,10 @@ Include the dependency in `commonMain`. Latest version [![Maven Central](https:/

```kotlin
// Declare your screen configurations for type-safety
@Parcelize
sealed class Screen: Parcelable {
@Parcelize object List : Screen()
@Parcelize data class Details(val detail: String) : Screen()
object List : Screen()
data class Details(val detail: String) : Screen()
}

@Composable
Expand Down

0 comments on commit 1592eff

Please sign in to comment.