CupertinoFullscreenDialogTransitionModifier constructor

const CupertinoFullscreenDialogTransitionModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. required Animation<double> primaryRouteAnimation,
  5. required Animation<double> secondaryRouteAnimation,
  6. required bool linearTransition,
})

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

  • primaryRouteAnimation is a linear route animation from 0.0 to 1.0 when this screen is being pushed.
  • secondaryRouteAnimation is a linear route animation from 0.0 to 1.0 when another screen is being pushed on top of this one.
  • linearTransition is whether to perform the secondary transition linearly. Used to precisely track back gesture drags.

Implementation

const CupertinoFullscreenDialogTransitionModifier({
  super.key,
  super.child,
  super.modifierKey,
  required this.primaryRouteAnimation,
  required this.secondaryRouteAnimation,
  required this.linearTransition,
});