getShadows static method
Implementation
static List<BoxShadow> getShadows([
ContentDesignStyle style = ContentDesignStyle.solid,
]) {
switch (style) {
case ContentDesignStyle.outlined:
// Subtle, elegant shadow for outlined style
return [
BoxShadow(
color: Colors.black.withValues(alpha: 0.04),
blurRadius: 1,
offset: const Offset(0, 1),
),
BoxShadow(
color: Colors.black.withValues(alpha: 0.06),
blurRadius: 8,
offset: const Offset(0, 4),
),
BoxShadow(
color: Colors.black.withValues(alpha: 0.04),
blurRadius: 24,
offset: const Offset(0, 12),
spreadRadius: -4,
),
];
case ContentDesignStyle.colorHeader:
// Premium card shadow with soft glow effect
return [
BoxShadow(
color: Colors.black.withValues(alpha: 0.04),
blurRadius: 2,
offset: const Offset(0, 1),
),
BoxShadow(
color: Colors.black.withValues(alpha: 0.08),
blurRadius: 12,
offset: const Offset(0, 8),
spreadRadius: -2,
),
BoxShadow(
color: Colors.black.withValues(alpha: 0.12),
blurRadius: 32,
offset: const Offset(0, 24),
spreadRadius: -8,
),
];
case ContentDesignStyle.leftAccent:
// Same as outlined: subtle, elegant shadow
return [
BoxShadow(
color: Colors.black.withValues(alpha: 0.04),
blurRadius: 1,
offset: const Offset(0, 1),
),
BoxShadow(
color: Colors.black.withValues(alpha: 0.06),
blurRadius: 8,
offset: const Offset(0, 4),
),
BoxShadow(
color: Colors.black.withValues(alpha: 0.04),
blurRadius: 24,
offset: const Offset(0, 12),
spreadRadius: -4,
),
];
case ContentDesignStyle.tonal:
// Softer than solid, medium depth
return [
BoxShadow(
color: Colors.black.withValues(alpha: 0.04),
blurRadius: 2,
offset: const Offset(0, 1),
),
BoxShadow(
color: Colors.black.withValues(alpha: 0.08),
blurRadius: 10,
offset: const Offset(0, 5),
spreadRadius: -2,
),
BoxShadow(
color: Colors.black.withValues(alpha: 0.06),
blurRadius: 28,
offset: const Offset(0, 14),
spreadRadius: -6,
),
];
case ContentDesignStyle.solid:
// Rich, deep shadow for solid style
return [
BoxShadow(
color: Colors.black.withValues(alpha: 0.08),
blurRadius: 2,
offset: const Offset(0, 1),
),
BoxShadow(
color: Colors.black.withValues(alpha: 0.16),
blurRadius: 16,
offset: const Offset(0, 8),
spreadRadius: -4,
),
BoxShadow(
color: Colors.black.withValues(alpha: 0.24),
blurRadius: 32,
offset: const Offset(0, 16),
spreadRadius: -8,
),
];
}
}