Change Block children to be a named parameter

This commit is contained in:
Hans Muller
2016-01-21 16:59:52 -08:00
parent 05f79b4e45
commit 8218ff683f
28 changed files with 85 additions and 69 deletions

View File

@@ -37,12 +37,14 @@ class _ChipDemoState extends State<ChipDemo> {
return new Scaffold(
toolBar: new ToolBar(center: new Text("Chips")),
body: new Block(chips.map((Widget widget) {
return new Container(
height: 100.0,
child: new Center(child: widget)
);
}).toList())
body: new Block(
children: chips.map((Widget widget) {
return new Container(
height: 100.0,
child: new Center(child: widget)
);
}).toList()
)
);
}
}

View File

@@ -14,7 +14,7 @@ class _SliderDemoState extends State<SliderDemo> {
Widget build(BuildContext context) {
return new Scaffold(
toolBar: new ToolBar(center: new Text("Sliders")),
body: new Block(<Widget>[
body: new Block(children: <Widget>[
new Container(
height: 100.0,
child: new Center(

View File

@@ -128,7 +128,7 @@ class GalleryHome extends StatelessComponent {
body: new Padding(
padding: const EdgeDims.all(4.0),
child: new Block(
<Widget>[
children: <Widget>[
new Row(
children: <Widget>[
new GallerySection(