neon static method

List<BoxShadow> neon({
  1. required Color color,
  2. Offset direction = const Offset(0, 1),
})

Intense double-glow halo for the neon variant — a tight inner ring plus a wide diffuse bloom in the accent color.

Implementation

static List<BoxShadow> neon({
  required Color color,
  Offset direction = const Offset(0, 1),
}) {
  final dy = direction.dy;
  final dx = direction.dx;
  return [
    BoxShadow(
      color: color.withValues(alpha: 0.55),
      blurRadius: 12,
      spreadRadius: -2,
    ),
    BoxShadow(
      color: color.withValues(alpha: 0.35),
      offset: Offset(dx * 4, dy * 10),
      blurRadius: 32,
      spreadRadius: -6,
    ),
    BoxShadow(
      color: Colors.black.withValues(alpha: 0.4),
      offset: Offset(dx * 6, dy * 14),
      blurRadius: 28,
      spreadRadius: -10,
    ),
  ];
}