We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc29ad5 commit 0edb4c7Copy full SHA for 0edb4c7
lib/fluttertoast.dart
@@ -1,6 +1,7 @@
1
import 'dart:async';
2
import 'dart:io';
3
4
+import 'package:flutter/foundation.dart';
5
import 'package:flutter/material.dart';
6
import 'package:flutter/services.dart';
7
@@ -90,10 +91,10 @@ class Fluttertoast {
90
91
gravityToast = "bottom";
92
}
93
- if (backgroundColor == null && Platform.isIOS) {
94
+ if (backgroundColor == null && !kIsWeb && Platform.isIOS) {
95
backgroundColor = Colors.black;
96
- if (textColor == null && Platform.isIOS) {
97
+ if (textColor == null && !kIsWeb && Platform.isIOS) {
98
textColor = Colors.white;
99
100
final Map<String, dynamic> params = <String, dynamic>{
0 commit comments