animateListGlassShine method
Widget
animateListGlassShine(
{ - required int index,
- int intervalMs = 150,
- int durationMs = 1200,
- bool animate = true,
})
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);
}