You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'll try to explain this issue in my poor english :)
I am currently using Flushbar to show push notifications.
When a notification arrives, a new Flushba" is shown and will be dismissed after 4 seconds.
But, when a new Flushbar is shown and I tap on a button in the current screen to open a new screen/route, that Flushbar is not dismissed and when I go back to the previous screen, the flushbar is there, opened, for ever.
I manage Flushbar from a "main container" that contains all the app, a kind of iOS "appdelegate".
I tried to tell Flushbar to dismiss by implementing RouteObservers (onPush() method) but, ironically, when a flushbar is pushed, routeobservers doesn't observe anymore...
The text was updated successfully, but these errors were encountered:
That is by design. I talk about this in the other open issues and in the docs. When you call dismiss, Flushbar checks if it is the topmost route and only then calls pop(). Otherwise it would pop the new screen instead of the bar.
Flutter does not have something like a popNamed(). You can only remove the topmost route from the stack.
Again, make sure the bar is gone before putting a new route on top of it.
I'll try to explain this issue in my poor english :)
I am currently using Flushbar to show push notifications.
When a notification arrives, a new Flushba" is shown and will be dismissed after 4 seconds.
But, when a new Flushbar is shown and I tap on a button in the current screen to open a new screen/route, that Flushbar is not dismissed and when I go back to the previous screen, the flushbar is there, opened, for ever.
I manage Flushbar from a "main container" that contains all the app, a kind of iOS "appdelegate".
I tried to tell Flushbar to dismiss by implementing RouteObservers (onPush() method) but, ironically, when a flushbar is pushed, routeobservers doesn't observe anymore...
The text was updated successfully, but these errors were encountered: