CupertinoPageTransitionModifier constructor
const
CupertinoPageTransitionModifier({})
Creates an iOS-style page transition.
primaryRouteAnimationis a linear route animation from 0.0 to 1.0 when this screen is being pushed.secondaryRouteAnimationis a linear route animation from 0.0 to 1.0 when another screen is being pushed on top of this one.linearTransitionis 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,
});