Browse Source

Removed TextInputs

pull/305/head
Roman Sedaikin 4 years ago
parent
commit
3606eb5f63
  1. 1
      examples/intelliJPlugin/src/main/kotlin/com/jetbrains/compose/ComposeDemoAction.kt
  2. 4
      examples/intelliJPlugin/src/main/kotlin/com/jetbrains/compose/widgets/TextInputs.kt

1
examples/intelliJPlugin/src/main/kotlin/com/jetbrains/compose/ComposeDemoAction.kt

@ -51,7 +51,6 @@ class ComposeDemoAction : DumbAwareAction() {
) {
Buttons()
Loaders()
TextInputs()
Toggles()
}
Box(

4
examples/intelliJPlugin/src/main/kotlin/com/jetbrains/compose/widgets/TextInputs.kt

@ -25,6 +25,8 @@ fun TextInputs() {
) {
var name by remember { mutableStateOf(TextFieldValue("")) }
var password by remember { mutableStateOf(TextFieldValue("")) }
// TextInputs() // TODO: causes exceptions on Windows OS
TextField(
value = name,
onValueChange = { newValue -> name = newValue },
@ -32,6 +34,8 @@ fun TextInputs() {
label = { Text("Account:") },
placeholder = { Text("account name") }
)
// TextInputs() // TODO: causes exceptions on Windows OS
OutlinedTextField(
value = password,
modifier = Modifier.padding(8.dp).fillMaxWidth(),

Loading…
Cancel
Save