animateList3DSkew method
Widget
animateList3DSkew(
{ - required int index,
- int intervalMs = 50,
- int durationMs = 700,
- bool animate = true,
})
Implementation
Widget animateList3DSkew(
{required int index,
int intervalMs = 50,
int durationMs = 700,
bool animate = true}) {
if (!animate) return this;
return this
.animate(delay: _getDelay(index, intervalMs).ms)
.fadeIn(duration: 400.ms)
.custom(
begin: 0.5,
end: 0,
duration: durationMs.ms,
builder: (_, v, c) => Transform(
transform: Matrix4.identity()
..setEntry(3, 2, 0.001)
..setEntry(0, 1, v)
..setTranslationRaw(v * 100, 0, 0),
child: c,
),
);
}