Skip to content

Commit ccd285c

Browse files
committed
update
1 parent f03bfdb commit ccd285c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/go_router/lib/src/delegate.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,9 @@ class GoRouterDelegate extends RouterDelegate<RouteMatchList>
9999
}
100100
RouteMatchBase walker = currentConfiguration.matches.last;
101101
while (walker is ShellRouteMatch) {
102-
final NavigatorState potentialCandidate = walker.navigatorKey.currentState!;
103-
if (!ModalRoute.isCurrentOf(potentialCandidate.context)!) {
102+
final NavigatorState potentialCandidate =
103+
walker.navigatorKey.currentState!;
104+
if (!ModalRoute.of(potentialCandidate.context)!.isCurrent) {
104105
// There is a pageless route on top of the shell route. it needs to be
105106
// popped first.
106107
break;

0 commit comments

Comments
 (0)