Commit 5cc62567 by mmdrez4 Committed by GitHub

fix the issue (#330)

parent c1e39141
...@@ -75,11 +75,11 @@ class Fluttertoast { ...@@ -75,11 +75,11 @@ class Fluttertoast {
gravityToast = "bottom"; gravityToast = "bottom";
} }
if (backgroundColor == null && //lines from 78 to 97 have been changed in order to solve issue #328
defaultTargetPlatform == TargetPlatform.iOS) { if (backgroundColor == null) {
backgroundColor = Colors.black; backgroundColor = Colors.black;
} }
if (textColor == null && defaultTargetPlatform == TargetPlatform.iOS) { if (textColor == null) {
textColor = Colors.white; textColor = Colors.white;
} }
final Map<String, dynamic> params = <String, dynamic>{ final Map<String, dynamic> params = <String, dynamic>{
...@@ -88,7 +88,9 @@ class Fluttertoast { ...@@ -88,7 +88,9 @@ class Fluttertoast {
'time': timeInSecForIosWeb, 'time': timeInSecForIosWeb,
'gravity': gravityToast, 'gravity': gravityToast,
'bgcolor': backgroundColor != null ? backgroundColor.value : null, 'bgcolor': backgroundColor != null ? backgroundColor.value : null,
'iosBgcolor': backgroundColor != null ? backgroundColor.value : null,
'textcolor': textColor != null ? textColor.value : null, 'textcolor': textColor != null ? textColor.value : null,
'iosTextcolor': textColor != null ? textColor.value : null,
'fontSize': fontSize, 'fontSize': fontSize,
'webShowClose': webShowClose, 'webShowClose': webShowClose,
'webBgColor': webBgColor, '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