fadeInMoveInRight method
Fade In Move In Right Animation
Implementation
Widget fadeInMoveInRight(
{int delay = 0,
double horizontalOffset = 50,
int duration = 500,
bool repeat = false,
bool reverse = false,
bool autoPlay = true,
Curve? curve,
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: curve ?? Curves.ease)
.moveX(
duration: duration.milliSeconds,
begin: horizontalOffset,
end: 0,
curve: curve ?? Curves.ease);