toBottom static method

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

Animation from on the screen to down off the screen.

Implementation

static SlideTransition toBottom(Widget child, Animation<double> animation) {
  return SlideTransition(
    position: Tween<Offset>(
      begin: Offset.zero,
      end: const Offset(0, 1),
    ).animate(animation),
    child: child,
  );
}