fromTop static method
fromTop Slide animation, from top to bottom This method uses SlideTransition widget
Implementation
static Widget fromTop(Animation<double> animation, Widget child) {
return SlideTransition(
position: Tween<Offset>(end: Offset.zero, begin: const Offset(0.0, -1.0))
.animate(animation),
child: child,
);
}