cardSpacing static method

EdgeInsets cardSpacing({
  1. CardSpacingType type = CardSpacingType.standard,
})

Create spacing for card layouts

Implementation

static EdgeInsets cardSpacing({
  CardSpacingType type = CardSpacingType.standard,
}) {
  switch (type) {
    case CardSpacingType.compact:
      return EdgeInsets.all(12.0);
    case CardSpacingType.standard:
      return EdgeInsets.all(16.0);
    case CardSpacingType.comfortable:
      return EdgeInsets.all(24.0);
    case CardSpacingType.spacious:
      return EdgeInsets.all(32.0);
  }
}