Skip to content

Commit

Permalink
add GetNavigator to root
Browse files Browse the repository at this point in the history
  • Loading branch information
jonataslaw committed Jun 4, 2021
1 parent 6165e8b commit 7a6033e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/get_navigation/src/nav2/get_router_delegate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ class GetDelegate extends RouterDelegate<GetNavConfig>
Widget build(BuildContext context) {
final pages = getVisualPages();
final extraObservers = navigatorObservers;
return Navigator(
return GetNavigator(
name: 'root',
key: navigatorKey,
onPopPage: _onPopVisualRoute,
pages: pages,
Expand Down

0 comments on commit 7a6033e

Please sign in to comment.