How to add auto scale down a font in a Text widget to fit the max number of lines?

Posted by Jennifer | Updated on

If you want to add auto scale down a font in a Text widget to fit the max number of lines? An easy drop-in solution is to use FittedBox with fit: BoxFit.scaleDown:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers