Release 0.5.0 (7)
- New API for creating a
Navigator
and rendering the current content.
val navigator = rememberNavigator("Greeting")
NavContainer(navigator) { _, destination ->
when (destination) {
"Greeting" -> Text("Hello")
"Farewell" -> Text("Good-bye")
else -> Text("Unexpected Key: $key")
}
}
navigator.goTo("Farewell")
- Updated Kotlin to version
1.7.0
- Updated compose-jb to version
1.2.0-alpha01-dev755
- Updated other dependencies
- Added
ViewModel
class and removedSaver
Full Changelog: 0.4.0...0.5.0