Skip to content
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

Whenever I tap back button once, sanckbar appear #7

Closed
byeonghwa-jeong opened this issue Mar 8, 2020 · 3 comments
Closed

Whenever I tap back button once, sanckbar appear #7

byeonghwa-jeong opened this issue Mar 8, 2020 · 3 comments

Comments

@byeonghwa-jeong
Copy link

byeonghwa-jeong commented Mar 8, 2020

Hello, thank you for your plugin

I am trying to make a function to exit app when double tab the back button in the CupertinoTabbar.

However, whenever I tap the back button, an exit message appeared.

Hence I want to build a code work like following:

  • just tap back button once, return before pages
  • tap twice in few seconds, exit app.

Is it possible to solve these problems using this plugin?

I have also asked in the stackoverflow. Address of it is that:

https://stackoverflow.com/questions/60587411/how-can-i-separate-one-tap-and-double-tap-of-back-button-in-flutter

Thank you!

@ghost
Copy link

ghost commented Mar 10, 2020

This package should got you covered, as long as you handle the initial situation you mentioned:

just tap back button once, return before pages

I can help you find out what exactly is not working, but I need a small reproducible snippet. Note: The Stack Overflow snippet is not reproducible, since it depends on FirebaseUser.

@mdanialr
Copy link

@joun2001 actually, what back button do is pop one layer/page from your stacks, its exactly like Navigator.pop(context). It's mean that 'this' layer will be poped up from the stack. If your current layer/page is the last layer in the stack, then it will close your app.

@hcbpassos
Copy link
Owner

i'm closing this due to lack of activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants