Skip to content

Commit c844de1

Browse files
Update Readme with new desktop configuration (#73)
* Update Readme with new desktop configuration
1 parent 7396b32 commit c844de1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,10 @@ class DetailInstance(savedState: SavedStateHandle, detail: String) : InstanceKee
199199
val rootRouterContext = RouterContext(lifecycle = lifecycle)
200200

201201
application {
202-
Window {
202+
val windowState: WindowState = rememberWindowState()
203+
LifecycleController(lifecycle, windowState)
204+
205+
Window(state = windowState) {
203206
CompositionLocalProvider(LocalRouterContext provides rootRouterContext) {
204207
MaterialTheme {
205208
ListDetailScreen()

0 commit comments

Comments
 (0)