JulyWitch / animated_snack_bar

Easily show beautiful snack bars directly using overlays. Create custom snack bars and show them with awesome animations.
https://pub.dev/packages/animated_snack_bar
GNU General Public License v3.0
16 stars 12 forks source link

Don't show repeated snack bars #8

Closed Djihanegh closed 1 year ago

Djihanegh commented 1 year ago

Hello,

is it possible to avoid showing similar snack bars coming one after the other ? this happens when the user tap on a button twice, I mean if a snack bar with the same text and type is still showing, and the another similar one is in the stack , I don't want to show the second one.

Thank you.

JulyWitch commented 1 year ago

Hey Djihanegh,

This problem should be solved in your app code and I don't think of it as this library's responsibility. I'm closing this issue. Please reopen it if you think I've got it wrong or if you have something else in your mind.

Also to solve your issue, You have to add a timer in that button and not calling snack bar showing function until the time for previous one is finished.