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