Font size and layout

27 views
Skip to first unread message

Şükriye Ludwig

unread,
Aug 20, 2020, 9:26:13 AM8/20/20
to Flutter Development (flutter-dev)
Hi folks,

Is there a way to avoid changing the font size and layout in my app when the system font size is changed to a larger or smaller one?
If the system font size has been changed to larger, the layout in my app is broken.

Thanks,

-Sue

Riswan

unread,
Aug 20, 2020, 10:11:31 AM8/20/20
to Şükriye Ludwig, Flutter Development (flutter-dev)
Did you try textScaleFactor property? make textScaleFactor to 1.0 as below code then check. 

Text(
    'Sample Text',
    textScaleFactor: 1.0,
    style: TextStyle(
        fontSize: 24,
    ),
),

Regards,
Riswan


--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/baa621ed-2472-420b-a633-8afcefe016d7n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages