neonGlow static method

BoxDecoration neonGlow({
  1. required Color glowColor,
  2. double radius = 10,
  3. Color background = Colors.black,
})

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