mirror of
https://github.com/BetterAndroid/FlexiUI.git
synced 2025-09-08 11:34:18 +08:00
feat: update demo
This commit is contained in:
@@ -31,6 +31,6 @@ fun main() = application {
|
|||||||
Window(
|
Window(
|
||||||
onCloseRequest = ::exitApplication,
|
onCloseRequest = ::exitApplication,
|
||||||
title = "FlexiUI Demo",
|
title = "FlexiUI Demo",
|
||||||
state = rememberWindowState(width = 550.dp, height = 950.dp)
|
state = rememberWindowState(width = 550.dp, height = 1000.dp)
|
||||||
) { MainView() }
|
) { MainView() }
|
||||||
}
|
}
|
@@ -103,7 +103,16 @@ private fun ContentView() {
|
|||||||
modifier = Modifier.width(TextFieldWidth),
|
modifier = Modifier.width(TextFieldWidth),
|
||||||
value = input,
|
value = input,
|
||||||
onValueChange = { input = it },
|
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(
|
completionValues = listOf(
|
||||||
"Compose",
|
"Compose",
|
||||||
"Compose World",
|
"Compose World",
|
||||||
|
Reference in New Issue
Block a user