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:
parent
003d55db3f
commit
3665866fba
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user