Skip to content

Commit

Permalink
fix: warning
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoAiolia committed Jan 26, 2024
1 parent 0bbe297 commit b7e27a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/src/route/observer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b7e27a9

Please sign in to comment.