softCard static method
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),
),
],
);
}