Home > Blockchain >  How do I Increase the Font Size of TextView in Android Studio?
How do I Increase the Font Size of TextView in Android Studio?

Time:06-02

How do I increase the Font in textView on Android studio? I can set the font style but I can't find the attributes to increase the Font Size

CodePudding user response:

You need to add the attribute fontSize inside TextStyle.

Example:

Text(
   'Some text',
   style: TextStyle(
      fontSize: 20
   )
)

Doc: https://api.flutter.dev/flutter/painting/TextStyle-class.html

CodePudding user response:

as you are working in XML try this android:textSize="xsp" replace that 'x' with the size you desire 'sp' scales the text if you want hardcoded text size try 'dp'

  • Related