fromBottom static method

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

fromBottom Slide animation, from top to bottom This method uses SlideTransition widget

Implementation

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