animateWidgetMorphIn method
Widget
animateWidgetMorphIn(
{ - int delayMs = 0,
- int durationMs = 1000,
- bool repeat = false,
- bool animate = true,
})
Implementation
Widget animateWidgetMorphIn({
int delayMs = 0,
int durationMs = 1000,
bool repeat = false,
bool animate = true,
}) {
if (!animate) return this;
return _baseAnimate(delayMs: delayMs, repeat: repeat)
.fadeIn(duration: 500.ms)
.scale(
begin: const Offset(0.5, 1.5),
end: const Offset(1, 1),
curve: Curves.elasticOut,
duration: durationMs.ms,
);
}