buildPageTransitions<T> static method
Implementation
static Widget buildPageTransitions<T>(
PageRoute<T> route,
BuildContext context,
Animation<double> animation,
Animation<double> secondaryAnimation,
Widget child,
) {
final linearTransition = isPopGestureInProgress(route);
return _SwipeableBackGestureDetector<T>(
notificationDepth: notificationDepth,
enabledCallback: () => _isPopGestureEnabled<T>(route),
onStartPopGesture: () => _startPopGesture<T>(route),
builder: (slidingState) {
return SwipeablePageTransition(
primaryRouteAnimation: animation,
secondaryRouteAnimation: secondaryAnimation,
linearTransition: linearTransition,
slidingState: slidingState,
child: child,
);
},
);
}