New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Double-back Exit on Homepage #76
Comments
Can do it. |
I can work on this issue @infiniteoverflow |
I am sorry @anotherwebguy , Since @D-Ajay-Kumar has commented on this issue first , it will be assigned to him. Do look out for more issues or feel free to raise an issue of your own. |
On it |
The double back exit is working but it's taking user to the login screen again where there's an alert dialog that says "Login complete enjoy the app". Should it be like that? This alert dialog seems kinda useless coz why would anyone want to see a dialog box after logging in to confirm the login has been successful, not to mention it doesn't occur after logging in, only when double back is pressed on home screen. |
And this is happening coz after logging in there is a navigator that pushes the home screen on top of the login screen because of which the user can press the back button and go to this login screen again without pressing the logout button. There should instead be a push replacement so that the back button closes the app. And when the logout button is pressed, this home screen should be replaced with the login screen again. |
@D-Ajay-Kumar use |
Done. Please check the code :) |
We need to override the back button and implement the "Double-back to Exit" feature.
You can use this package : https://pub.dev/packages/double_back_to_close_app
The text was updated successfully, but these errors were encountered: