How I can remove underline from my TextField
? I don't want to use different TextField()
val style = TextStyle(
color = MaterialTheme.colors.primary,
fontSize = 16.sp,
fontWeight = FontWeight.SemiBold,
textDecoration = TextDecoration.None,
textAlign = TextAlign.Center
)
BasicTextField(
modifier = Modifier
.fillMaxWidth()
.align(Alignment.Center),
textStyle = style,
value = value,
onValueChange = { value = it },
singleLine = true
)