fadeInMoveInBottomStickyBouncy method
Applies a fade-in, slide-up, and strong, "sticky" bounce using Curves.elasticOut.
This effect uses the elastic curve to create a memorable, stylized bounce where the widget settles into place with strong oscillation.
Implementation
Widget fadeInMoveInBottomStickyBouncy(
{int delay = 0,
double verticalOffset = 50,
int duration = 500,
bool repeat = false,
bool reverse = false,
bool autoPlay = true,
void Function(AnimationController)? onInit}) =>
animate(
delay: delay.milliSeconds,
autoPlay: autoPlay,
onInit: onInit,
onPlay: (controller) {
if (repeat) {
controller.repeat(reverse: reverse);
}
})
.fadeIn(duration: duration.milliSeconds, begin: 0, curve: Curves.ease)
.moveY(
duration: duration.milliSeconds,
begin: verticalOffset,
end: 0,
curve: Curves.ease)
.then()
.moveY(
duration: duration.milliSeconds,
begin: verticalOffset,
end: 0,
curve: Curves.elasticOut);