AmrJyniat
isError = true
Felix Schütz
OutlinedTextField( value = text, onValueChange = { newText -> onTextChange(newText) }, modifier = Modifier .fillMaxWidth() .border( BorderStroke( width = 1.dp, color = Purple500 ), shape = RoundedCornerShape(4.dp) ), placeholder = { Text(text = hint, style = textHintStyle) }, isError = errorResStringId != null, colors = TextFieldDefaults.outlinedTextFieldColors( errorBorderColor = Color.Red, focusedBorderColor = MaterialTheme.colors.secondary, unfocusedBorderColor = MaterialTheme.colors.secondary, ) )
A modern programming language that makes developers happier.