Pop snackbar
#630
-
We had |
Beta Was this translation helpful? Give feedback.
Answered by
robkri
Dec 1, 2022
Replies: 1 comment 3 replies
-
If found this in the documentation of To dismiss the snackbar manually, use the following code: final result = showSnackbar(context, snackbar);
result.remove(); Is this what you are looking for? EDIT: |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
thegioiso
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If found this in the documentation of
showSnackbar
:To dismiss the snackbar manually, use the following code:
Is this what you are looking for?
EDIT:
To avoid an error when the Snackbar already got dismissed automatically, wrap the call of
remove()
in an try-catch-block like so: #630 (reply in thread).