Skip to content
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

Question : Is there any way to know whether the snackbar is opened #180

Open
dngconsulting opened this issue Feb 3, 2021 · 2 comments
Open

Comments

@dngconsulting
Copy link

I have an absolute positioned Fab button that should be hidden when the snackbar is opened, is there any way to know whether the snackbar is visible or not ?

Thanks

@cooperka
Copy link
Owner

cooperka commented Mar 8, 2021

Hi @dngconsulting, as far as I know, Android doesn't provide callbacks for this and the timing can vary depending on platform. I'd welcome a PR if you know of a good solution.

@iamrohitagg
Copy link

I want to know some similar thing. How can I know if SnackBar is closed? I tried to add the function in onPress in action but what if the SnackBar is dismissed after the duration of LENGTH_LONG I have passed to duration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants