ModGrid constructor

const ModGrid({
  1. Key? key,
  2. required int itemCount,
  3. required Widget itemBuilder(
    1. BuildContext,
    2. int
    ),
  4. double mainAxisSpacing = 8.0,
  5. double crossAxisSpacing = 8.0,
  6. double childAspectRatio = 1.0,
  7. int largeCols = 4,
  8. int mediumCols = 3,
  9. int smallCols = 2,
  10. int mobileCols = 1,
})

Implementation

const ModGrid({
  super.key,
  required this.itemCount,
  required this.itemBuilder,
  this.mainAxisSpacing = 8.0,
  this.crossAxisSpacing = 8.0,
  this.childAspectRatio = 1.0,
  this.largeCols = 4,
  this.mediumCols = 3,
  this.smallCols = 2,
  this.mobileCols = 1,
});