animateListGlassShine method

Widget animateListGlassShine({
  1. required int index,
  2. int intervalMs = 150,
  3. int durationMs = 1200,
  4. bool animate = true,
})
  1. Glass Morph Shine

Implementation

Widget animateListGlassShine(
    {required int index,
    int intervalMs = 150,
    int durationMs = 1200,
    bool animate = true}) {
  if (!animate) return this;
  return this
      .animate(delay: _getDelay(index, intervalMs).ms)
      .fadeIn(duration: 400.ms)
      .slideX(begin: 0.1, end: 0)
      .shimmer(
          delay: 200.ms,
          duration: durationMs.ms,
          color: Colors.white.withValues(alpha: 0.4),
          stops: [0, 0.5, 1],
          angle: 45);
}