FlutterToast
FlutterToast copied to clipboard
Fluttertoast.cancel() doesn't work on the web
I am using the last version of flutter toast currently 8.0.8, I am facing a problem of showing toast on the web, when there is a new toast it doesn't kill or close the previous toast, so if i make a multiple actions that show toast I finished with multiple toast on top of each other on the screen, this is applicable only on the web, on Android and iOS it works fine, only the last toast is shown.
duplicate: https://github.com/ponnamkarthik/FlutterToast/issues/327
try with BuildContext method, you can dismiss by using fToast.removeCustomToast();
on the web
https://github.com/ponnamkarthik/FlutterToast#toast-with-buildcontext-all-platforms