cardTheme static method

CardThemeData cardTheme(
  1. Palette colors, [
  2. MonetShapes? shapes
])

Implementation

static CardThemeData cardTheme(Palette colors, [MonetShapes? shapes]) {
  shapes ??= _defaultShapes;
  return CardThemeData(
    clipBehavior: Clip.none, // match default
    color: colors.background,
    shadowColor: _singleShadowColorFor(colors.background),
    surfaceTintColor: colors.background,
    elevation: modalElevation,
    margin: const EdgeInsets.all(0), // match default
    shape: shapes.border(side: BorderSide(color: colors.fill, width: 2)),
  );
}