diff --git a/lib/src/route/observer.dart b/lib/src/route/observer.dart index 1987282..5c49c88 100644 --- a/lib/src/route/observer.dart +++ b/lib/src/route/observer.dart @@ -69,8 +69,7 @@ class FaradayNavigatorObserver extends NavigatorObserver { Future.delayed(const Duration(milliseconds: 200)).then((_) { if (route is ModalRoute) { _disableHorizontalSwipePopGesture.value = - // ignore: invalid_use_of_protected_member - route.hasScopedWillPopCallback || !onlyOnePage; + route.popDisposition == RoutePopDisposition.pop || !onlyOnePage; } else { _disableHorizontalSwipePopGesture.value = !onlyOnePage; }