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

Loading…
Cancel
Save