-
Notifications
You must be signed in to change notification settings - Fork 151
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
Calling setstate doesn't show snackbar. #81
Comments
This works as well
|
Hi @kundan1301, that's very strange. Are there any routes or screens that are added or removed based on the state (such as a modal that pops up)? If you could link to a working example app that would help me diagnose the issue. Feel free to fork and edit the official example app if that's easier. |
Hello @cooperka, Yes I am adding a modal to show loader. Once network call is completed |
Unfortunately, that won't currently work -- see #28 for details. The snackbar attaches itself to the top screen, and if that screen is a modal, the snackbar will go away along with the modal. Whether this Android behavior is a "bug" or a "feature" depends on who you ask 😉 For now, you could either show the loading indicator using something other than a modal, or you could add a slight delay (as you suggested) to make sure the snackbar attaches to the screen below the modal. |
Closing as duplicate of #28; feel free to reply on either issue if you have any questions. Thanks! |
Calling setstate doesn't show snackbar.
Above code doesn't show snackbar. But Below code show snackbar
The text was updated successfully, but these errors were encountered: