fromTop static method
Animation from top offscreen up onto the screen.
Implementation
static SlideTransition fromTop(Widget child, Animation<double> animation) {
return SlideTransition(
position: Tween<Offset>(
begin: const Offset(0, -1),
end: Offset.zero,
).animate(animation),
child: child,
);
}