animateListRevealScale method

Widget animateListRevealScale({
  1. required int index,
  2. int intervalMs = 60,
  3. int durationMs = 700,
  4. bool animate = true,
})
  1. Reveal Clip (Vertical)

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);
}