FlutterToast icon indicating copy to clipboard operation
FlutterToast copied to clipboard

Fluttertoast.cancel() doesn't work on the web

Open dernoun opened this issue 3 years ago • 1 comments

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.

dernoun avatar Aug 10 '21 12:08 dernoun

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

AuronChoo avatar Aug 26 '21 09:08 AuronChoo