HoverResponsiveGrid constructor
HoverResponsiveGrid({
- required List<
Widget> children, - int columnsPerRow = 3,
- int columnsPerRowOnTablets = 2,
- int columnsPerRowOnPhones = 1,
- int breakpointForPhones = 575,
- int breakpointForTablets = 768,
- double childAspectRatio = 1,
- double horizontalPadding = 24,
- double verticalPadding = 24,
- Clip clipBehavior = Clip.hardEdge,
- double crossAxisSpacing = 0,
Displays a grid of widgets with columns are equal in width.
The number of columns rendered is determined by the width of the device.
Implementation
HoverResponsiveGrid({
required this.children,
this.columnsPerRow = 3,
this.columnsPerRowOnTablets = 2,
this.columnsPerRowOnPhones = 1,
this.breakpointForPhones = 575,
this.breakpointForTablets = 768,
this.childAspectRatio = 1,
this.horizontalPadding = 24,
this.verticalPadding = 24,
this.clipBehavior = Clip.hardEdge,
this.crossAxisSpacing = 0,
}) : assert(columnsPerRow > 0 && breakpointForTablets > breakpointForPhones);