animateListRevealScale method
Widget
animateListRevealScale(
{ - required int index,
- int intervalMs = 60,
- int durationMs = 700,
- bool animate = true,
})
Implementation
Widget animateListRevealScale(
{required int index,
int intervalMs = 60,
int durationMs = 700,
bool animate = true}) {
if (!animate) return this;
return this
.animate(delay: _getDelay(index, intervalMs).ms)
.fadeIn(duration: 400.ms)
.scaleY(
begin: 0,
end: 1,
alignment: Alignment.bottomCenter,
curve: Curves.easeOutExpo,
duration: durationMs.ms)
.moveY(begin: 20, end: 0, duration: durationMs.ms);
}