LayoutGrid constructor
LayoutGrid({})
Implementation
LayoutGrid({
Key? key,
this.autoPlacement = AutoPlacement.rowSparse,
this.gridFit = GridFit.expand,
this.areas,
required this.columnSizes,
required this.rowSizes,
double? rowGap,
double? columnGap,
this.textDirection,
List<Widget> children = const [],
}) : this.rowGap = rowGap ?? 0,
this.columnGap = columnGap ?? 0,
super(key: key, children: children) {
assert(columnSizes.isNotEmpty);
assert(rowSizes.isNotEmpty);
assert(() {
if (areas == null) return true;
final parsedAreas = parseNamedAreasSpec(areas!);
assert(parsedAreas.columnCount == columnSizes.length,
'areas.columnCount != columnSizes.length');
assert(parsedAreas.rowCount == rowSizes.length,
'areas.rowCount != rowSizes.length');
return true;
}(), 'areas ');
}