FlutterToast icon indicating copy to clipboard operation
FlutterToast copied to clipboard

Toast message on android sdk bigger than or equal to 31 does not appear as expected.

Open mahmourad98 opened this issue 2 years ago • 3 comments

I noticed that when we pass decoration to toast message like text color, text font size, background color etc if the android version of the device is bigger than or equal to 31 I mean since android 12, the decoration is not applied. so I took the implementation of the library and put it in a seperate android project and I removed the condition where it checks that the android version is less than 31 or not. finally it worked, so I recommened the developer to remove this condition since I had to make the package embedded in my project not pulled from git. Screen Shot 2023-03-25 at 15 00 46 Screen Shot 2023-03-25 at 15 04 13

mahmourad98 avatar Mar 25 '23 12:03 mahmourad98

@mahmourad98 this code updated or not in latest library?

android 13 does not appear background color

ShirishModi8 avatar Apr 03 '23 12:04 ShirishModi8

@ShirishModi8 no it is not updated till now.

chiragdhunna avatar Feb 05 '24 07:02 chiragdhunna

I updated the code in a forked repository you can pull it from here. https://github.com/mahmourad98/FlutterToast-Android-S-VersionFix I have submitted a pull request for the library owner to merge the hot-fix with the base code.

mahmourad98 avatar Feb 06 '24 13:02 mahmourad98