Check tutorials (#237)

This commit is contained in:
Nikolay Igotti
2020-12-29 16:52:59 +03:00
committed by GitHub
parent b08b9ed17d
commit a664d07c1a
13 changed files with 410 additions and 23 deletions

View File

@@ -33,7 +33,7 @@ It works the same as Compose for Android, for details see [API Reference](https:
The most common use case is to define keyboard handlers for active controls like `TextField`. Here is an example:
``` kotlin
```kotlin
import androidx.compose.desktop.Window
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
@@ -51,7 +51,6 @@ import androidx.compose.runtime.getValue
import androidx.compose.runtime.setValue
import androidx.compose.ui.input.key.shortcuts
@OptIn(ExperimentalKeyInput::class)
fun main() = Window(title = "Compose for Desktop", size = IntSize(300, 300)) {
MaterialTheme {
var consumedText by remember { mutableStateOf(0) }