CupertinoFullscreenDialogTransition constructor

CupertinoFullscreenDialogTransition({Key key, @required Animation<double> animation, @required Widget child })

Creates an iOS-style transition used for summoning fullscreen dialogs.

Implementation

CupertinoFullscreenDialogTransition({
  Key key,
  @required Animation<double> animation,
  @required this.child,
}) : _positionAnimation = animation
       .drive(CurveTween(curve: Curves.easeInOut))
       .drive(_kBottomUpTween),
     super(key: key);