buildPageTransitions<T> static method

Widget buildPageTransitions<T>(
  1. PageRoute<T> route,
  2. BuildContext context,
  3. Animation<double> animation,
  4. Animation<double> secondaryAnimation,
  5. Widget child,
)

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,
      );
    },
  );
}