animateWidgetJelly method
Widget
animateWidgetJelly(
{ - int durationMs = 300,
- bool repeat = false,
- bool animate = true,
})
Implementation
Widget animateWidgetJelly(
{int durationMs = 300, bool repeat = false, bool animate = true}) {
if (!animate) return this;
return _baseAnimate(repeat: repeat)
.scale(
begin: const Offset(1, 1),
end: const Offset(1.1, 0.9),
duration: (durationMs / 2).ms)
.then()
.scale(
begin: const Offset(1.1, 0.9),
end: const Offset(1, 1),
duration: (durationMs / 2).ms,
curve: Curves.elasticOut);
}