neonGlow static method
Neon Glow style (great for buttons or focus areas)
Implementation
static BoxDecoration neonGlow({
required Color glowColor,
double radius = 10,
Color background = Colors.black,
}) {
return BoxDecoration(
color: background,
borderRadius: BorderRadius.circular(radius),
boxShadow: [
BoxShadow(
color: glowColor.withValues(alpha: 0.7),
blurRadius: 12,
spreadRadius: 1,
),
BoxShadow(
color: glowColor.withValues(alpha: 0.3),
blurRadius: 30,
spreadRadius: 8,
),
],
);
}