Container介绍

具有绘制、定位、调整大小等功能

Container属性概要

  1. Container({
  2. Key key,
  3. this.alignment,// 定位
  4. this.padding,// 内边距
  5. Color color,// 背景色
  6. Decoration decoration,// 自定义背景
  7. this.foregroundDecoration,// 自定义前景
  8. double width,// 宽
  9. double height,// 高
  10. BoxConstraints constraints,// 大小约束框
  11. this.margin,// 外边距
  12. this.transform,// 矩阵变化(扭曲、旋转、缩放)
  13. this.child,// 子部件
  14. })