fadeInMoveInBottomStickyBouncy method

Widget fadeInMoveInBottomStickyBouncy({
  1. int delay = 0,
  2. double verticalOffset = 50,
  3. int duration = 500,
  4. bool repeat = false,
  5. bool reverse = false,
  6. bool autoPlay = true,
  7. void onInit(
    1. AnimationController
    )?,
})

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);