Flutter 之 Container, Row, Column,Expanded,Flexible

Container由负责布局、绘画、定位和大小调整的几个控件组成,由LimitedBox、ConstrainedBox、 Align、Padding、DecoratedBox和Transform控件组成。

(Creates a widget that combines common painting, positioning, and sizing widgets)

Row:水平布局控件,能够将子控件水平排列

(Creates a horizontal array of children)

Column:垂直布局控件,能够将子控件垂直排列

(Creates a vertical array of children)

Expanded:强制子组件填充可用空间

(A widget that expands a child of a [Row], [Column], or [Flex])

Flexible组件:可以使Row、Column、Flex等子组件在主轴方向有填充可用空间的‘‘能力’’

(A widget that controls how a child of a [Row], [Column], or [Flex] flexes.)

    原文作者:蒙娜lisa
    原文地址: https://zhuanlan.zhihu.com/p/37997902
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞