flutter 子控件约束,最大最小宽度与高度
ConstrainedBox(
constraints: BoxConstraints(maxWidth: 300),
child: Container(
width: 200,
height: 200
)
)
ConstrainedBox(
constraints: BoxConstraints(maxWidth: 300),
child: Container(
width: 200,
height: 200
)
)