OpenFlutter / flutter_screenutil

Flutter screen adaptation, font adaptation, get screen information
https://pub.dartlang.org/packages/flutter_screenutil
Apache License 2.0
3.87k stars 493 forks source link

Minimum text size on small devices #452

Closed wamynobe closed 1 year ago

wamynobe commented 1 year ago

Should we add double get smx => max(toDouble(), sp); to size extension and use it to get minimum size same as design size on some small devices(smaller than design size)? It's fine to write it in our own project extension but integrating it into the package is more awesome ^_^. Skip this if it doesn't make sense. Thanks.

lizhuoyuan commented 1 year ago

You are right, since there is "min", there should be "max".