body: Container(
///設(shè)置容器中child對齊方式
alignment: Alignment.bottomCenter,
///設(shè)置容器中child的padding值
padding: EdgeInsets.all(20),
///設(shè)置容器背景顏色。如果foregroundDecoration設(shè)置的話,可能會遮蓋color效果。與decoration屬性中的color沖突。
//color: Colors.amberAccent,
///繪制在child前面的裝飾。
foregroundDecoration: BoxDecoration(color: Color.fromARGB(20, 156, 212, 80)),
///指定容器的寬度
width: 200,
///指定容器的高度
height: 300,
///設(shè)置容器中child額外的約束條件,double.infinity:強(qiáng)制鋪滿屏幕
constraints: BoxConstraints(minWidth: double.infinity),
///給容器設(shè)置裝飾
decoration: BoxDecoration(
shape: BoxShape.rectangle, color: Colors.deepOrangeAccent),
///設(shè)置容器的邊距
margin: EdgeInsets.all(30),
///給容器設(shè)置變換矩陣()
transform: Matrix4.rotationZ(0.1),
///給容器設(shè)置子widget
child: Text(title),
),
關(guān)于Flutter Matrix4矩陣變換參考文章:http://www.itdecent.cn/p/cc2f9a088fc9