Is it possible to center text in TextField?
textStyle = TextStyle(textAlign = TextAlign.Center)
seems not working.
Is it possible to center text in TextField?
textStyle = TextStyle(textAlign = TextAlign.Center)
seems not working.
You can use:
TextField(
value = text,
onValueChange = {text = it},
textStyle = LocalTextStyle.current.copy(
textAlign = TextAlign.Center
)
)