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:
// Optionally apply `alignment` to position the text inside the box:
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.