我们应该使用 Margin、Padding 或 SizedBox 来在小部件之间提供间距吗?小部件的 Margin 和 padding 可以完成工作,那么 SizedBox 的用途是什么
SizedBox creates space between widget to widget only just height and width.
On the other hand, Margin is an element’s personal space — how much distance the element wants to keep with other elements around it.
Padding is how much an element is away from itself — how much distance an element wants to keep with the elements inside it.
They create distance top, bottom, left, and right.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)