fromTop static method

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

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

Implementation

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