flutter

Flutter之ConstrainedBox组件

2019-03-26  本文已影响0人  习惯了_就好
/**
 * 限制子元素的最大最小宽高
 * ConstrainedBox({
    Key key,
    @required this.constraints,//限制条件
    Widget child
    })
 */
/**
 *const BoxConstraints({
    this.minWidth = 0.0,
    this.maxWidth = double.infinity,
    this.minHeight = 0.0,
    this.maxHeight = double.infinity
    })
 */

上一篇 下一篇

猜你喜欢

热点阅读