004.6 flutter中的FittedBox、Limited
2020-03-12 本文已影响0人
码农二哥
FittedBox功能
基本使用
image.png
image.png
LimitedBox功能
基本使用
- Widges can be sized by their parent's constraints.
- Some widgets do not constrain their children's sizes.
-
How to set a default size? Use LimitedBox.
image.png
image.png
image.png
image.png
image.png