Edoardo Luppi
10/01/2023, 1:31 PMBasicTextField
, e.g.
@Composable
fun MyTextfield() {
BasicTextField(
value = "",
onValueChange = { },
minLines = 2,
modifier = Modifier
.fillMaxWidth()
.background(Color.LightGray)
)
}
And when run, the application doesn't let me type in that text field. Am I missing a step?onValueChange
Feels strange to make it mandatory, but I get it.Zach Klippenstein (he/him) [MOD]
10/02/2023, 6:15 PMBasicTextField
will let you do something like this:
val text = rememberTextFieldState()
BasicTextField(text)
but you’ll still have to pass something in – otherwise there’d be no way to actually know what the text isEdoardo Luppi
10/02/2023, 6:18 PM