We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27edef6 commit a7ff440Copy full SHA for a7ff440
lib/src/advanced_navigator.dart
@@ -537,10 +537,13 @@ class AdvancedNavigatorState extends State<AdvancedNavigator>
537
if (ancestor != null) {
538
var route = ModalRoute.of(context);
539
if (route != null) {
540
+ var parentBackButtonDispatcher = ancestor._backButtonDispatcher;
541
backButtonDispatcher = NestedBackButtonDispatcher(
- ancestor._backButtonDispatcher,
542
+ parentBackButtonDispatcher,
543
route: route,
544
);
545
+ parentBackButtonDispatcher.deferTo(
546
+ backButtonDispatcher as ChildBackButtonDispatcher);
547
}
548
} else {
549
backButtonDispatcher = RootBackButtonDispatcher();
0 commit comments