animateListSkewReveal method

Widget animateListSkewReveal({
  1. required int index,
  2. int intervalMs = 50,
  3. int durationMs = 600,
  4. bool animate = true,
})
  1. Slide Skew Reveal

Implementation

Widget animateListSkewReveal(
    {required int index,
    int intervalMs = 50,
    int durationMs = 600,
    bool animate = true}) {
  if (!animate) return this;
  return this
      .animate(delay: _getDelay(index, intervalMs).ms)
      .fadeIn(duration: 400.ms)
      .custom(
        begin: 0.4,
        end: 0,
        duration: durationMs.ms,
        builder: (_, v, c) => Transform(
          transform: Matrix4.identity()
            ..setEntry(0, 1, v)
            ..setTranslationRaw(v * 100, 0.0, 0.0),
          child: c,
        ),
      );
}