BoxConstraint.loosen:松约束。就是把BoxConstraint中的minWidth和minHeight都变为0.
紧约束:给container的固定值尺寸。即最大值等于最小值
松约束、紧约束概念来自于官方定义:
https://api.flutter.dev/flutter/rendering/BoxConstraints-class.html
BoxConstraint.loosen:松约束。就是把BoxConstraint中的minWidth和minHeight都变为0.
紧约束:给container的固定值尺寸。即最大值等于最小值
松约束、紧约束概念来自于官方定义:
https://api.flutter.dev/flutter/rendering/BoxConstraints-class.html