animateWidget3DSkew method
Widget
animateWidget3DSkew(
{ - int delayMs = 0,
- int durationMs = 700,
- bool repeat = false,
- bool animate = true,
})
Implementation
Widget animateWidget3DSkew(
{int delayMs = 0,
int durationMs = 700,
bool repeat = false,
bool animate = true}) {
if (!animate) return this;
return _baseAnimate(delayMs: delayMs, repeat: repeat)
.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)
..translateByDouble(v * 100, 0, 0, 1),
child: c,
),
);
}