Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

showToast is ignoring parameters I give it. #477

Open
Kaegan00 opened this issue Nov 16, 2023 · 2 comments
Open

showToast is ignoring parameters I give it. #477

Kaegan00 opened this issue Nov 16, 2023 · 2 comments

Comments

@Kaegan00
Copy link

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
Copy link

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
Copy link
Author

Well that's definitely annoying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants