Closed Pandi17 closed 2 years ago
Sorry, accidently closed this issue, issue still remains
same issue for me too, any update?
same issue for me too, any update?
Not yet bro
the same to me
@Pandi17 Trying to reproduce on Android 11 but it works for me. I tried -
Fluttertoast.showToast(
msg: "Toast with red background",
toastLength: Toast.LENGTH_SHORT,
backgroundColor: Colors.red,
textColor: Colors.white);
And I can see a toast with red background and white text. Can you post the code you are trying on your end?
I'm using pixel 3a API 30 x86 Android emulator
Fluttertoast.showToast(
msg: "Logged out!",
toastLength: Toast.LENGTH_LONG,
gravity: ToastGravity.SNACKBAR,
backgroundColor: Colors.red,
textColor: Colors.white,
fontSize: 16.0
);
doesn't work :( (
@Pandi17 Trying to reproduce on Android 11 but it works for me. I tried -
Fluttertoast.showToast( msg: "Toast with red background", toastLength: Toast.LENGTH_SHORT, backgroundColor: Colors.red, textColor: Colors.white);
And I can see a toast with red background and white text. Can you post the code you are trying on your end?
Same code only I'm using, but not working in android 11 but working in android 10, both in emulator and in real device
?
Same problem, My Code scenario -
class ToastMessage {
static void error(String message) {
Fluttertoast.showToast(
msg: message,
toastLength: Toast.LENGTH_SHORT,
gravity: ToastGravity.BOTTOM,
timeInSecForIosWeb: 1,
backgroundColor: Colors.red,
textColor: Colors.white,
fontSize: 16.0,
);
}
static void success(String message) {
Fluttertoast.showToast(
msg: message,
toastLength: Toast.LENGTH_SHORT,
gravity: ToastGravity.BOTTOM,
timeInSecForIosWeb: 1,
backgroundColor: Colors.green,
textColor: Colors.white,
fontSize: 16.0,
);
}
}
Red Color and green color are not working in my case!
Same issue for me. Background color doesn't work on Android 11
I downloaded the whole repository with the last commit of C4st3ll4n and now it works! The author of this packages should publish the new version on pub.dev
Same issue on Pixel 3, Android 12.
if you're using a Color(<your_color>)
which does not seems to work me, you have to create a color_swatch with MaterialColor
and also the Colors.<color>
is defined with MeterialColor
Android 12 will show their colour (probably matches with dark background color of OS) and also app icon n
Android 12 will show their colour (probably matches with dark background color of OS) and also app icon n
I am facing the same problem. getting icon and black background but my color is not displaying. Please help me How to set background color in android 12 or upper?
Flutter toast background colour is not working in android 11 but working in android 10 my flutter sdk 2.2.3, please fix as soon as possible
fluttertoast: ^8.0.8