Home > Software design >  How to change the input font size in TextField of Android Jetpack Compose
How to change the input font size in TextField of Android Jetpack Compose

Time:07-08

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

CodePudding user response:

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