Sized box vs padding for distances in columns and rows

Posted by Andre Scott | Updated on

Sized box vs padding for distances in columns and rows. SizedBox win. As it only applies constraints to it’s child.

But considering they both don’t have a child, they do the same thing litteraly. At most you’ll have a nanosecond worth of difference/ That is especially true considering both syntaxes in your example will be instantiated as “const”. Which abort the following rebuild.

Use whatever fits you the best. The gain is so minimal you’ll never ever notice a difference. So take what is clearer.


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