Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/get_navigation/src/root/get_root.dart
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ class GetRootState extends State<GetRoot> 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!;
}
Expand Down
5 changes: 2 additions & 3 deletions lib/get_navigation/src/routes/get_router_delegate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -280,13 +280,12 @@ class GetDelegate extends RouterDelegate<RouteDecoder>
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();
}
}

Expand Down