feat: update demo

This commit is contained in:
2023-11-21 09:32:29 +08:00
parent c2b58a368d
commit 91d78115bb
2 changed files with 11 additions and 2 deletions

View File

@@ -31,6 +31,6 @@ fun main() = application {
Window(
onCloseRequest = ::exitApplication,
title = "FlexiUI Demo",
state = rememberWindowState(width = 550.dp, height = 950.dp)
state = rememberWindowState(width = 550.dp, height = 1000.dp)
) { MainView() }
}

View File

@@ -103,7 +103,16 @@ private fun ContentView() {
modifier = Modifier.width(TextFieldWidth),
value = input,
onValueChange = { input = it },
placeholder = { Text(text = "Type something...") },
placeholder = { Text(text = "Type something...") }
)
Spacer(Modifier.padding(10.dp))
var completion by remember { mutableStateOf("") }
TextField(
modifier = Modifier.width(TextFieldWidth),
value = completion,
onValueChange = { completion = it },
placeholder = { Text(text = "Auto completion...") },
singleLine = true,
completionValues = listOf(
"Compose",
"Compose World",