fontSize property

double? fontSize
final

Size of text and icons.

The textScaleFactor is 1, so the text will NOT be scaled dynamically with the user's device settings.

That means, you can use the largest fontSize that does not overflow.

If null, defaults to:

 MediaQuery.of(context).size.width >= 650
   ? 33
   : MediaQuery.of(context).size.width >= 375
     ? 20
     : 18

If you specify your own fontSize, it will NOT be responsive any more - unless you pass something like above.

Implementation

final double? fontSize;