animateNeonFlow method

Widget animateNeonFlow({
  1. Color color = Colors.cyanAccent,
  2. bool animate = true,
})
  1. Neon Flow

Implementation

Widget animateNeonFlow(
    {Color color = Colors.cyanAccent, bool animate = true}) {
  if (!animate) return this;
  return this
      .animate(onPlay: (controller) => controller.repeat())
      .shimmer(
          duration: 1500.ms, color: color.withValues(alpha: 0.4), angle: 0)
      .shimmer(
          duration: 1500.ms, color: color.withValues(alpha: 0.2), angle: 90);
}