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