AmrJyniat
10/28/2021, 7:39 AMisError = true
to the TextField the border's color not becomes only Red but I see it's combination of PrimaryColor and Red, any tips about the issue?Felix Schütz
10/28/2021, 7:47 AMAmrJyniat
10/28/2021, 7:49 AMOutlinedTextField(
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,
)
)
Compose material version 1.0.3Felix Schütz
10/28/2021, 8:04 AMAmrJyniat
10/28/2021, 8:29 AM