ConstrainedBox简介

对子部件(大小)添加约束

ConstrainedBox属性概述

  1. ConstrainedBox({
  2. Key key,
  3. @required this.constraints,// 设置(大小)约束条件
  4. Widget child,// 需要约束的条件
  5. })