CupertinoPageTransitionModifier constructor
const
CupertinoPageTransitionModifier({})
Creates an iOS-style page transition.
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 transitions linearly. Used to precisely track back gesture drags.
Implementation
const CupertinoPageTransitionModifier({
super.key,
super.child,
super.modifierKey,
required this.primaryRouteAnimation,
required this.secondaryRouteAnimation,
required this.linearTransition,
});