-
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
Prevent flushbar show on child screen #45
Comments
Flushbar is a route, same as any other screen. It will be covered if you push another route above it. I'm not sure what you are doing there, but you can always dismiss it before calling the new screen. |
@AndreHaueisen , my application is using Socket.io so whenever Socket.io emits messages to the app, Flushbar will show the messages on top, so I just put the Flushbar on a parent screen (Tabbar screen). I wanna show the Flushbar on some screens (List chats, list contacts), and not on some detail screens (Chat, User detail). This is the map of screens:
Now i have to use callback function to tell Tabbar change state of showing Flushbar, but I don't think this is the best solution. Any ideas? |
Are you using the same BuildContext to show all of them? |
Actually, I just call Flushbar.show() one time on Tabbar screen, in the listening function of Socket.io |
I don't think I can help you here. Flushbar is a route as any other. If you call |
Hi,
I put my flushbar on the very top screen (Tabbar Screen) to listen to events from Socket.io. The flushbar works well on Tabbar Screen, but when I Navigator.push to next screen, call Chat Screen, the flushbar still showing. How can I dismiss flushbar on Chat Screen? Thanks in advance.
The text was updated successfully, but these errors were encountered: