fromRight static method
Slide animation, from right to left (SlideTransition)
Implementation
static Widget fromRight(
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,
),
);
}