diff --git a/lib/get_navigation/src/root/get_root.dart b/lib/get_navigation/src/root/get_root.dart index 70f2ec0ac..aee5b7f1c 100644 --- a/lib/get_navigation/src/root/get_root.dart +++ b/lib/get_navigation/src/root/get_root.dart @@ -314,7 +314,7 @@ class GetRootState extends State with WidgetsBindingObserver { static GetRootState? _controller; static GetRootState get controller { if (_controller == null) { - throw Exception('GetRoot is not part of the three'); + throw Exception('GetRoot is not part of the tree'); } else { return _controller!; } diff --git a/lib/get_navigation/src/routes/get_router_delegate.dart b/lib/get_navigation/src/routes/get_router_delegate.dart index 5f98d4f2c..e99e6e94c 100644 --- a/lib/get_navigation/src/routes/get_router_delegate.dart +++ b/lib/get_navigation/src/routes/get_router_delegate.dart @@ -280,13 +280,12 @@ class GetDelegate extends RouterDelegate return SynchronousFuture(_canPopPage()); } - bool _canPop(mode) { + bool _canPop(PopMode mode) { switch (mode) { case PopMode.history: return _canPopHistory(); case PopMode.page: - default: - return _canPopPage(); + return _canPopPage(); } }