Sizing a dynamically sized Widget by a factor

Posted by Jennifer | Updated on

Sizing a dynamically sized Widget by a factor. A FractionallySizedBox sizes itself to its parent. Because you’re using a column within a stack it doesn’t really have a limit on infinite height. Since infinity / 2 == infinity your text therefore also has an infinite height.

If you switch to using an align, you can size your object to the text rather than the parent.


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