PIGridContainer constructor
const
PIGridContainer({})
Implementation
const PIGridContainer(
{Key? key,
required this.crossAxisCount,
required this.children,
required this.width,
this.itemHeight, // 如果不设置高度就等于宽度
double? itemSpacing,
double? rowSpacing,
Color? backgroundColor})
: this.itemSpacing = itemSpacing ?? 0.0,
this.rowSpacing = rowSpacing ?? 0.0,
this.backgroundColor = backgroundColor ?? Colors.white,
super(key: key);