We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f03bfdb commit ccd285cCopy full SHA for ccd285c
packages/go_router/lib/src/delegate.dart
@@ -99,8 +99,9 @@ class GoRouterDelegate extends RouterDelegate<RouteMatchList>
99
}
100
RouteMatchBase walker = currentConfiguration.matches.last;
101
while (walker is ShellRouteMatch) {
102
- final NavigatorState potentialCandidate = walker.navigatorKey.currentState!;
103
- if (!ModalRoute.isCurrentOf(potentialCandidate.context)!) {
+ final NavigatorState potentialCandidate =
+ walker.navigatorKey.currentState!;
104
+ if (!ModalRoute.of(potentialCandidate.context)!.isCurrent) {
105
// There is a pageless route on top of the shell route. it needs to be
106
// popped first.
107
break;
0 commit comments