animateWidgetGlassShine method

Widget animateWidgetGlassShine({
  1. int delayMs = 0,
  2. int durationMs = 1200,
  3. bool repeat = false,
  4. bool animate = true,
})
  1. Glass Shine Sweep

Implementation

Widget animateWidgetGlassShine(
    {int delayMs = 0,
    int durationMs = 1200,
    bool repeat = false,
    bool animate = true}) {
  if (!animate) return this;
  return _baseAnimate(delayMs: delayMs, repeat: repeat)
      .fadeIn(duration: 400.ms)
      .shimmer(
          delay: 200.ms,
          duration: durationMs.ms,
          color: Colors.white.withColorOpacity(0.4),
          stops: const [0, 0.5, 1],
          angle: 45);
}