Skip to content

Commit ca3a64a

Browse files
authored
Merge pull request #250 from Jvaeyhcd/master
Update navigator_observer.dart
2 parents e95ccd5 + 6313193 commit ca3a64a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/helper/navigator_observer.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import 'dialog_proxy.dart';
99
class SmartNavigatorObserver extends NavigatorObserver {
1010
@override
1111
void didPush(Route<dynamic> route, Route<dynamic>? previousRoute) {
12-
DialogProxy.contextNavigator ??= navigator?.context;
12+
DialogProxy.contextNavigator = navigator?.context;
1313
RouteRecord.curRoute = route;
1414
RouteRecord.instance.push(route, previousRoute);
1515
}

0 commit comments

Comments
 (0)