fromTop static method

SlideTransition fromTop(
  1. Widget child,
  2. Animation<double> animation
)

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,
  );
}