import 'dart:io' show Platform;


const double kRichCardMinWidth = 300;


final double kPosterCardMinWidth = Platform.isAndroid ? 130 : 180;


const double kCardGap = 12;


int cardColumnsFor(
  double width, {
  double minCardWidth = kRichCardMinWidth,
  int maxCols = 4,
}) {
  if (width <= 0) return 1;
  final cols = (width / minCardWidth).floor();
  return cols.clamp(1, maxCols);
}
