refactor: update back navigation to prioritize popping the route stack before defaulting to home
This commit is contained in:
@@ -75,6 +75,8 @@ class _ConversationsScreenState extends ConsumerState<ConversationsScreen> {
|
||||
_isSearchActive = false;
|
||||
_searchController.clear();
|
||||
});
|
||||
} else if (Navigator.of(context).canPop()) {
|
||||
Navigator.of(context).pop();
|
||||
} else {
|
||||
context.go('/home');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user