how do I achieve relative font sizing in flutter? i.e, A font size of 16.0 might be proper in a Iphone X emulator but overflows in a Iphone 5s as the font size is huge for the 5s screen.Please feel free to tag anybody who might be able to help me. outlook from IphoneX outlook from Iphone 5s
Asked
Active
Viewed 2,394 times
4
-
You've seen this? https://stackoverflow.com/questions/47665083/how-do-i-auto-scale-down-a-font-in-a-text-widget-to-fit-the-max-number-of-lines – KhoPhi Jul 11 '18 at 09:27
-
@Rexford That is unrelated to this question. – creativecreatorormaybenot Jul 11 '18 at 09:35
1 Answers
2
You can use FittedBox to achieve this:
FittedBox(fit:BoxFit.cover, child: Text("Hello World"))

Cody Gray - on strike
- 239,200
- 50
- 490
- 574

Laxman Kumar
- 134
- 6