Commit 3665866f authored by Adam Barth's avatar Adam Barth

Add some sensible defaults to FixedColumnCountGrid and MaxTileWidthGrid

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



Fixes #3102
parent 003d55db
...@@ -1447,8 +1447,8 @@ class FixedColumnCountGrid extends GridRenderObjectWidgetBase { ...@@ -1447,8 +1447,8 @@ class FixedColumnCountGrid extends GridRenderObjectWidgetBase {
Key key, Key key,
List<Widget> children: _emptyWidgetList, List<Widget> children: _emptyWidgetList,
this.columnCount, this.columnCount,
this.columnSpacing, this.columnSpacing: 0.0,
this.rowSpacing, this.rowSpacing: 0.0,
this.tileAspectRatio: 1.0, this.tileAspectRatio: 1.0,
this.padding: EdgeInsets.zero this.padding: EdgeInsets.zero
}) : super(key: key, children: children) { }) : super(key: key, children: children) {
...@@ -1490,8 +1490,8 @@ class MaxTileWidthGrid extends GridRenderObjectWidgetBase { ...@@ -1490,8 +1490,8 @@ class MaxTileWidthGrid extends GridRenderObjectWidgetBase {
Key key, Key key,
List<Widget> children: _emptyWidgetList, List<Widget> children: _emptyWidgetList,
this.maxTileWidth, this.maxTileWidth,
this.columnSpacing, this.columnSpacing: 0.0,
this.rowSpacing, this.rowSpacing: 0.0,
this.tileAspectRatio: 1.0, this.tileAspectRatio: 1.0,
this.padding: EdgeInsets.zero this.padding: EdgeInsets.zero
}) : super(key: key, children: children) { }) : super(key: key, children: children) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment