Commit 4c15c762 by Pranay Madasi

ios color crash fix

parent 3cd2892e
...@@ -38,11 +38,7 @@ static NSString *const CHANNEL_NAME = @"PonnamKarthik/fluttertoast"; ...@@ -38,11 +38,7 @@ static NSString *const CHANNEL_NAME = @"PonnamKarthik/fluttertoast";
NSString *durationTime = call.arguments[@"time"]; NSString *durationTime = call.arguments[@"time"];
NSNumber *bgcolor = call.arguments[@"bgcolor"]; NSNumber *bgcolor = call.arguments[@"bgcolor"];
NSNumber *textcolor = call.arguments[@"textcolor"]; NSNumber *textcolor = call.arguments[@"textcolor"];
NSLog(@"BG %d", bgcolor);
NSLog(@"TC %d", textcolor);
int time = 1; int time = 1;
@try { @try {
time = [durationTime intValue]; time = [durationTime intValue];
......
...@@ -35,9 +35,6 @@ class Fluttertoast { ...@@ -35,9 +35,6 @@ class Fluttertoast {
gravityToast = "bottom"; gravityToast = "bottom";
} }
print(backgroundColor);
print(textColor);
if(backgroundColor == null && defaultTargetPlatform == TargetPlatform.iOS) { if(backgroundColor == null && defaultTargetPlatform == TargetPlatform.iOS) {
backgroundColor = Colors.black; backgroundColor = Colors.black;
} }
......
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