Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
chunhtai committed Aug 20, 2024
1 parent f03bfdb commit ccd285c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/go_router/lib/src/delegate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ class GoRouterDelegate extends RouterDelegate<RouteMatchList>
}
RouteMatchBase walker = currentConfiguration.matches.last;
while (walker is ShellRouteMatch) {
final NavigatorState potentialCandidate = walker.navigatorKey.currentState!;
if (!ModalRoute.isCurrentOf(potentialCandidate.context)!) {
final NavigatorState potentialCandidate =
walker.navigatorKey.currentState!;
if (!ModalRoute.of(potentialCandidate.context)!.isCurrent) {
// There is a pageless route on top of the shell route. it needs to be
// popped first.
break;
Expand Down

0 comments on commit ccd285c

Please sign in to comment.