ARTICLE AD BOX
I'm trying to work in practice with the TextField markup element, but at the moment I'm facing such a problem that when using the onValueChange parameter, I get an error. Here is the full function code, and screenshots of the error
@Composable fun InformationPerson(person: Person) { var message by rememberSaveable { mutableStateOf("") } Card( modifier = Modifier .fillMaxWidth() .padding(horizontal = 16.dp, vertical = 8.dp), shape = RoundedCornerShape(10.dp), elevation = CardDefaults.cardElevation(5.dp) ) { Column( modifier = Modifier .fillMaxWidth() ) { TextField( onValueChange = { message = it }, modifier = Modifier.fillMaxWidth(), value = message, minLines = 1, maxLines = 5, shape = RoundedCornerShape(10.dp), placeholder = "Input Text" ) } } }