Browse Source

Update tutorials

pull/743/head
Igor Demin 3 years ago committed by GitHub
parent
commit
69dbc82ec8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      tutorials/Window_API_new/README.md

4
tutorials/Window_API_new/README.md

@ -336,7 +336,7 @@ fun main() = application {
val state = rememberWindowState() val state = rememberWindowState()
Window(state) { Window(state) {
} // Content
LaunchedEffect(state) { LaunchedEffect(state) {
snapshotFlow { state.size } snapshotFlow { state.size }
@ -349,6 +349,7 @@ fun main() = application {
.launchIn(this) .launchIn(this)
} }
} }
}
private fun onWindowResize(size: WindowSize) { private fun onWindowResize(size: WindowSize) {
println("onWindowResize $size") println("onWindowResize $size")
@ -357,7 +358,6 @@ private fun onWindowResize(size: WindowSize) {
private fun onWindowRelocate(position: WindowPosition) { private fun onWindowRelocate(position: WindowPosition) {
println("onWindowRelocate $position") println("onWindowRelocate $position")
} }
``` ```
## Handle window-level shortcuts ## Handle window-level shortcuts

Loading…
Cancel
Save