tapeView method

CarpetStyle tapeView({
  1. int granularity = 20,
  2. int height = 4,
  3. int quiltMultiplier = 4,
  4. int minGranularityWidth = 5,
})

Configures a tape-view style for granular, horizontal feeds.

Allows holes and sets granularity for narrow tiles, with height and multiplier adjustments. Used in Carpet for timeline views.

Implementation

CarpetStyle tapeView(
        {int granularity = 20,
        int height = 4,
        int quiltMultiplier = 4,
        int minGranularityWidth = 5}) =>
    copyWith(
      carpetWidthCalc: (_) => granularity,
      maxTileWidth: granularity,
      minTileWidth: minGranularityWidth,
      minTileHeight: height,
      maxTileHeight: height,
      maxQuiltHeight: quiltMultiplier * height,
      allowHoles: true,
    );