softCard static method

BoxDecoration softCard({
  1. Color? color,
  2. double radius = 12,
  3. Color? borderColor,
})

Soft shadow & subtle border, like Material cards

Implementation

static BoxDecoration softCard({
  Color? color,
  double radius = 12,
  Color? borderColor,
}) {
  return BoxDecoration(
    color: color ?? Colors.white,
    borderRadius: BorderRadius.circular(radius),
    border: Border.all(color: borderColor ?? Colors.grey.shade200),
    boxShadow: [
      BoxShadow(
        color: Colors.black.withValues(alpha: 0.04),
        blurRadius: 10,
        offset: const Offset(0, 4),
      ),
    ],
  );
}