fromLeft static method
Slide animation, from left to right (SlideTransition)
Implementation
static Widget fromLeft(
Animation<double> animation,
Animation<double> secondaryAnimation,
Widget child,
) {
return FadeTransition(
opacity: animation,
child: SlideTransition(
position: Tween<Offset>(
begin: const Offset(-0.2, 0),
end: Offset.zero,
).animate(
CurvedAnimation(
parent: animation,
curve: Curves.ease,
),
),
child: child,
),
);
}