animateWidgetOrigamiFold method
Widget
animateWidgetOrigamiFold(
{ - int delayMs = 0,
- int durationMs = 800,
- bool repeat = false,
- bool animate = true,
})
Implementation
Widget animateWidgetOrigamiFold(
{int delayMs = 0,
int durationMs = 800,
bool repeat = false,
bool animate = true}) {
if (!animate) return this;
return _baseAnimate(delayMs: delayMs, repeat: repeat)
.fadeIn(duration: 400.ms)
.custom(
begin: -1.5,
end: 0,
duration: durationMs.ms,
curve: Curves.easeOutBack,
builder: (_, v, c) => Transform(
transform: Matrix4.identity()
..setEntry(3, 2, 0.002)
..rotateX(v),
alignment: Alignment.topCenter,
child: c,
),
);
}