[Question] - How to handle Android hardware back button when Flushbar is open #43
Labels
enhancement
New feature or request
priority
This issue is a priority and is currently being worked on
Hi there. First of all,
I would like to say - the Flushbar is an amazing package - it can handle most of the cases with ease.
I have however one particular case, where I cannot see how to properly configure / use it. Here is it:
I would like to show a Flushbar when the user is on the app Home page and taps Android hardware back button. The short message pops and says "Tap once more to exit" and stays with certain
duration
e.g. 10 seconds. If within theduration
the user taps the back button once more, the app will close, otherwise the message closes and the process can start over. I am able to show the Flushbar with the message, however, while it is open, if the user taps back button one more time, the back button event goes to the Flushbar rather than to the Home page. The side effect is that this tap event closes the Flushbar message rather than be sent to the Home page, where I can handle it.If I use a standard flutter
SnackBar
everything works as I expected - even though the snackbar is visible the back button tap event is sent to the Home page.Please note, the above behavior is true even though
isDismissible = false
.Any idea how I can overcome the above side effect and properly get Android back button event in my page, when Flushbar is open?
The text was updated successfully, but these errors were encountered: