core/utils/label_fit library
Functions
-
fitFontSizeForLongestWord(
String label, double maxWidth, {List< double> candidates = const [11, 10, 9, 8], FontWeight fontWeight = FontWeight.w700, String? fontFamily = 'packages/roy_casual_kit/Baloo2', double measureWord(String word, double fontSize)?}) → double -
The largest font size in
candidatesfor which every word oflabelstill fits withinmaxWidth.