calcWidth method

double calcWidth(
  1. Size size,
  2. Orientation orientation,
  3. int columnsCount
)

Calc the width in pixels, for the screen and rotation config used actually in the device

Implementation

double calcWidth(Size size, Orientation orientation, int columnsCount) {
  final width = orientation == Orientation.landscape || kIsWeb
      ? size.width
      : size.height;
  final colWidth = width / columnsCount;
  //   print("colWidth $colWidth");

  return colWidth * columns[gridSize(size.width)]!;
}