笔记总结:
Text 组件内专用 style :TextSyle()
container 组件内 child 、alignment 、width、height、padding、margin、decoration 样式平级
Image 组件内 fit 、color、colorBlendMore、reapeat
ListView 组件内 scrollDirection 、children: <Widget>[ ]
列表传参:items: new List<String>.generate(50, (i) => "Item $i")
列表接收参数:
final List<String> items;
MyApp({Key key, @required this.items}):super(key:key); //MyApp函数中为一个构造函数
网格列表GridView.count 组件内:padding、crossAxisSpacing、crossAxisCount:、children: <Widget>[ ]
网格列表GridView 组件内 :
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 3,
mainAxisSpacing: 5.0,
crossAxisSpacing: 5.0,
<