fromBottom static method

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

Animation from bottom offscreen up onto the screen.

Implementation

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