Reputation: 99
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
Upvotes: 4
Views: 2505
Reputation: 154
You can use FittedBox to achieve this:
FittedBox(fit:BoxFit.cover, child: Text("Hello World"))
Upvotes: 2