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 = CurvedAnimation(
       parent: animation,
       curve: Curves.linearToEaseOut,
       // The curve must be flipped so that the reverse animation doesn't play
       // an ease-in curve, which iOS does not use.
       reverseCurve: Curves.linearToEaseOut.flipped,
     ).drive(_kBottomUpTween),
     super(key: key);