Is there any way to disable text getting enlarged by iOS dynamic type when developing in Flutter?
I have a few aesthetic Texts used in stacks with images that get screwed up when the text gets enlarged.
Enclose the Widget with this, it will disable its dynamic typing, recursively.
return MediaQuery(
child: your-widget-here,
data: MediaQuery.of(context).copyWith(textScaleFactor: 1.0),
);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With