ponnamkarthik / FlutterToast

Toast Plugin for Flutter
MIT License
1.43k stars 349 forks source link

showToast is ignoring parameters I give it. #477

Open Kaegan00 opened 8 months ago

Kaegan00 commented 8 months ago

showToast is just ignoring the parameters I give it. The message is partly right but it is adding the icon to the front out of nowhere it will also respond to the toastLength. The other parametesrs just seem to be completely ignored in my picture provided.

showToast(message) { Fluttertoast.showToast( msg: message, toastLength: Toast.LENGTH_LONG, gravity: ToastGravity.CENTER, timeInSecForIosWeb: 1, backgroundColor: const Color.fromARGB(255, 230, 36, 36), textColor: Colors.white, fontSize: 80.0 );

Screenshot_1700161765

GrrMoura commented 8 months ago

I found this message on pubDev, but I don't know if they made a mistake.

"Custom Toast will not work on android 11 and above, it will only use msg and toastLength remaining all properties are ignored"

Kaegan00 commented 8 months ago

Well that's definitely annoying.