Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
Fix can't exit with double back tap
Browse files Browse the repository at this point in the history
  • Loading branch information
nullxception committed Jul 6, 2024
1 parent 38a196d commit 2d862a2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/presentation/screens/home/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,7 @@ class _Home extends HookConsumerWidget {
}

return PopScope(
canPop: allowPop.value &&
context.router.canPop() &&
!drawer.isOpen &&
!searchBar.isOpen,
canPop: allowPop.value && !drawer.isOpen && !searchBar.isOpen,
onPopInvoked: (didPop) async {
if (drawer.isOpen || searchBar.isOpen) {
maybePopTimer.cancel();
Expand Down

0 comments on commit 2d862a2

Please # to comment.