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


I think SizedBox make code easier to read by flatten nested lines of code.

Tags:

Flutter