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

Snackbar stacked by other snackbar #2

Closed farhantandia closed 1 year ago

farhantandia commented 2 years ago

This condition happened if we click a button or there is another process that pop up this animated snackbar, if the duration is still on then it will not go off the screen, thus it will be stacked with another snackbar which is not really good in terms of UX, is there any function to immediately close the current animated snackbar so it will pop up consecutively for the next snackbar? Screenshot 2022-07-20 190416

JulyWitch commented 2 years ago

I didn't create such functionality I will fix this whenever I get time to work on it

JulyWitch commented 1 year ago

I have fix it in #5 (ver: 0.3.0) You can pass RemoveSnackBarStrategy to snackBarStrategy prop to achieve this