Add some sensible defaults to FixedColumnCountGrid and MaxTileWidthGrid

If we use null for these values, the implementations will later assert.



Fixes #3102
This commit is contained in:
Adam Barth 2016-04-04 20:47:05 -07:00
parent 003d55db3f
commit 3665866fba

View File

@ -1447,8 +1447,8 @@ class FixedColumnCountGrid extends GridRenderObjectWidgetBase {
Key key,
List<Widget> children: _emptyWidgetList,
this.columnCount,
this.columnSpacing,
this.rowSpacing,
this.columnSpacing: 0.0,
this.rowSpacing: 0.0,
this.tileAspectRatio: 1.0,
this.padding: EdgeInsets.zero
}) : super(key: key, children: children) {
@ -1490,8 +1490,8 @@ class MaxTileWidthGrid extends GridRenderObjectWidgetBase {
Key key,
List<Widget> children: _emptyWidgetList,
this.maxTileWidth,
this.columnSpacing,
this.rowSpacing,
this.columnSpacing: 0.0,
this.rowSpacing: 0.0,
this.tileAspectRatio: 1.0,
this.padding: EdgeInsets.zero
}) : super(key: key, children: children) {