slideInLeft static method
slideInLeft Animation
Implementation
static Transform slideInLeft({
/// child
required Widget child,
/// animation
required Animation<double> animation,
}) {
final curvedValue = Curves.easeInOutBack.transform(animation.value) - 1.0;
return Transform(
transform: Matrix4.translationValues(curvedValue * 200, 0.0, 0.0),
child: Opacity(
opacity: animation.value,
child: child,
),
);
}