Commit 5cc62567 by mmdrez4 Committed by GitHub

fix the issue (#330)

parent c1e39141
......@@ -75,11 +75,11 @@ class Fluttertoast {
gravityToast = "bottom";
}
if (backgroundColor == null &&
defaultTargetPlatform == TargetPlatform.iOS) {
//lines from 78 to 97 have been changed in order to solve issue #328
if (backgroundColor == null) {
backgroundColor = Colors.black;
}
if (textColor == null && defaultTargetPlatform == TargetPlatform.iOS) {
if (textColor == null) {
textColor = Colors.white;
}
final Map<String, dynamic> params = <String, dynamic>{
......@@ -88,7 +88,9 @@ class Fluttertoast {
'time': timeInSecForIosWeb,
'gravity': gravityToast,
'bgcolor': backgroundColor != null ? backgroundColor.value : null,
'iosBgcolor': backgroundColor != null ? backgroundColor.value : null,
'textcolor': textColor != null ? textColor.value : null,
'iosTextcolor': textColor != null ? textColor.value : null,
'fontSize': fontSize,
'webShowClose': webShowClose,
'webBgColor': webBgColor,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment