mirror of
https://github.com/BetterAndroid/FlexiUI.git
synced 2025-09-07 19:14:12 +08:00
feat: update demo
This commit is contained in:
@@ -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() }
|
||||
}
|
@@ -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",
|
||||
|
Reference in New Issue
Block a user