-
Notifications
You must be signed in to change notification settings - Fork 173
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
Flushbar throws error when we swipe from left to right to go back on ios. #17
Comments
Hi @orangewp |
hii after a lot of trying, I decided not to use the plugin in my app. Maybe I can reuse it to create the issue. basically what I am doing is, Popping up flushbar whenever app gets OnMessage() FCM notification. in android I didnt notice any issue because of the back button but in IOS the swipe from left edge to right edge (which is common to go back) crashes the app. |
Sorry to hear that @orangewp Do not know if this helps, but Flushbar pushes a route on top of the stack. Try dismissing Flushbar before going back. In any case, thanks for your interest. |
I really like your plugin. even if I am unable to use it. I am not expert in the flutter/dart. |
Actually same issue is on Android ) so it can be checked. please take a look on that. |
@I-am-original Thanks for reporting. Could you paste relevant code, please? Or share a link to your code. This could help me reproduce the error |
No need. I was able to reproduce it. Working on the solution. |
@I-am-original version 1.1.1 was released. Please, let me know if the problem was solved. |
did it fixed my issue as well? |
@AndreHaueisen yes I have seen that. But have not checked. @orangewp it should fix issue with Navigator. Actually there where only one crash ) |
this is the error I am getting on ios when swiping. flutter: ══╡ EXCEPTION CAUGHT BY ANIMATION LIBRARY ╞═════════════════════════════════════════════════════════ |
the the widget showing the flushbar is stacked and I am in deep down widget. |
This error happens when you try to reuse a dismissed Flushbar. An instance can be used only one time. |
it is happenning when I am popping back but after duration ends it tried to close the flushbar |
lets say i set duration 10 seconds and I pop back after flushbar shows. |
Ohh that helps a lot. The timer is not getting properly canceled. Thanks! I will try to solve it asap |
sorry I was thinking more and I realised that you also set flushbar in a way that it automatically gets dismissed when navigator push or pop.. |
I double checked. Timer has nothing to do. The pop is throwing the error immediately. |
only when popping by swiping in ios. If we press the back button in ios it is closing the flush on first tab and popping on second tap. means if flush is showing, then it takes two back button taps to go back. but in ios people usually use swipe to go back. |
this is my observation. I hope it helps :) |
I'm having the same issue, any fix for this? |
@joaowd I had to buy a MAC to test my apps (hate Apple expensive products) |
Thats great news, they are expensive but they are really good, you will love it :) (I'm getting this exception on the both branches I tested (dev and master)) Exception Message:
|
Trying to find a solution with the flutter team |
Since you use context to pop the bar, I don't think there is a solution. I'm using this package https://pub.dartlang.org/packages/overlay_support |
Context has nothing to do with it. This package also requires context to push the notification. |
Just released a new feature that offers a temporary workaround. Use |
This issue was fixed on Flutter master channel. |
Leaving it open while this does not hit stable to inform new users. |
See issue |
It's a shame that this issue has not been solved yet, I love this library but this forces me to look for alternatives 😭 |
This issue was moved to |
if we try to go back via swiping on ios when flushbar is showing toast. it will go back in navigator and flush notification will remain at their positon.
The text was updated successfully, but these errors were encountered: