How to exit app when back button is pressed and drawer is opened?
The goal is to ensure that when the drawer is open and on pressing the back button should exit the app instead of closing the drawer. However, the issue is that the BackHandler
is triggering even when the drawer is not open.
How to exit app when back button is pressed and drawer is opened?
The goal is to ensure that when the drawer is open and on pressing the back button should exit the app instead of closing the drawer. However, the issue is that the BackHandler
is triggering even when the drawer is not open.