How to change the input font size in TextField of Android Jetpack Compose

Viewed 253

I'd like to change the input font size in TextField of Android Jetpack Compose because it's very small now. Like this

1 Answers

According to the documentation, there is a parameter textStyle that takes TextStyle that allows you to set font size via fontSize.

You can do the following and it will set the font size to 28 sp

   TextField(value = "", onValueChange = {}, textStyle = TextStyle.Default.copy(fontSize = 28.sp))
Related