一、align
1.通過alignment決定位置,兩種方式:
①alignment.topLeft() alignment.topRight() alignment.topCenter()等
②Alignment(-0.3,0.5);//裏邊的數字代表子widget相對父容器中心位置的偏移比例
2.widthFactor:2.0,heightFactor:3.0,在不指定父容器寬高的情況下,通過這個函數來定義父widget是子widget的多少倍
二、AppBar
一、align
1.通過alignment決定位置,兩種方式:
①alignment.topLeft() alignment.topRight() alignment.topCenter()等
②Alignment(-0.3,0.5);//裏邊的數字代表子widget相對父容器中心位置的偏移比例
2.widthFactor:2.0,heightFactor:3.0,在不指定父容器寬高的情況下,通過這個函數來定義父widget是子widget的多少倍
二、AppBar