animateAurora method

Widget animateAurora({
  1. bool animate = true,
})
  1. Multi-Color Aurora

Implementation

Widget animateAurora({bool animate = true}) {
  if (!animate) return this;
  return this
      .animate(onPlay: (controller) => controller.repeat(reverse: true))
      .shimmer(
          duration: 4000.ms,
          color: Colors.purpleAccent.withValues(alpha: 0.1))
      .shimmer(
          duration: 3000.ms, color: Colors.blueAccent.withValues(alpha: 0.1))
      .shimmer(
          duration: 5000.ms, color: Colors.cyanAccent.withValues(alpha: 0.1));
}