gridCellWidth method

double gridCellWidth(
  1. double minCellWidth
)

Calculate grid cell width based on minimum cell size

Implementation

double gridCellWidth(double minCellWidth) {
  final count = (screenWidth / minCellWidth).floor().clamp(1, 10);
  return screenWidth / count;
}