SwipeablePageTransition constructor
SwipeablePageTransition({})
Implementation
SwipeablePageTransition({
Key? key,
required this.child,
required this.primaryRouteAnimation,
required this.slidingState,
required Animation<double> secondaryRouteAnimation,
required bool linearTransition,
}) : _secondaryPositionAnimation = (linearTransition
? secondaryRouteAnimation
: CurvedAnimation(
parent: secondaryRouteAnimation,
curve: Curves.linearToEaseOut,
reverseCurve: Curves.easeInToLinear,
))
.drive(_kMiddleBottomTween),
super(key: key);