slideFromRight static method
- AnimationController controller
Slide from right animation
Implementation
static Animation<Offset> slideFromRight(AnimationController controller) {
return Tween<Offset>(
begin: const Offset(0.3, 0),
end: Offset.zero,
).animate(CurvedAnimation(parent: controller, curve: smooth));
}