i am building my application for windows desktop on flutter. i tried using flutter toast the same way as it is used for android or ios but it is giving me this error:

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method showToast on channel PonnamKarthik/fluttertoast)

this is my code of toast function: void showToast(String message) { Fluttertoast.showToast( msg: message, toastLength: Toast.LENGTH_SHORT, gravity: ToastGravity.CENTER, timeInSecForIosWeb: 1, backgroundColor: Colors.red, textColor: Colors.white, fontSize: 16.0, ); }

i search about displaying toast in windows and it provided me with package win_toast: ^0.3.0 but i don't know how does this plugin works. this is the link to win_toast : text

1

There are 1 answers

1
Arinzehills On

Try using this package win_toast