cellView method

CarpetStyle cellView({
  1. int width = 3,
  2. int height = 1,
  3. int columns = 3,
})

Configures a cell-view style for uniform block layouts.

Defines fixed width, height, and column counts for grid-like cells. Suitable for dashboard tiles in Carpet widgets.

Implementation

CarpetStyle cellView({int width = 3, int height = 1, int columns = 3}) =>
    copyWith(
      carpetWidthCalc: (_) => columns * width,
      maxTileWidth: width,
      minTileWidth: width,
      minTileHeight: height,
      maxTileHeight: height,
      maxQuiltHeight: height,
    );