一、align

1.通过alignment决定位置,两种方式:

①alignment.topLeft()   alignment.topRight()  alignment.topCenter()等

②Alignment(-0.3,0.5);//里边的数字代表子widget相对父容器中心位置的偏移比例

2.widthFactor:2.0,heightFactor:3.0,在不指定父容器宽高的情况下,通过这个函数来定义父widget是子widget的多少倍

flutter组件(一)

相关文章:

  • 2021-06-13
  • 2021-06-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
猜你喜欢
  • 2021-07-21
  • 2021-09-04
  • 2021-12-30
  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案