Commit 84010efe by Zac Chan

added a log

parent ea47739b
...@@ -55,6 +55,7 @@ static NSString *const CHANNEL_NAME = @"PonnamKarthik/fluttertoast"; ...@@ -55,6 +55,7 @@ static NSString *const CHANNEL_NAME = @"PonnamKarthik/fluttertoast";
if (time > 10) time = 10; if (time > 10) time = 10;
else if (time < 1) time = 1; else if (time < 1) time = 1;
printf("It showToast");
CSToastStyle *style = [[CSToastStyle alloc] initWithDefaultStyle]; CSToastStyle *style = [[CSToastStyle alloc] initWithDefaultStyle];
...@@ -73,7 +74,7 @@ static NSString *const CHANNEL_NAME = @"PonnamKarthik/fluttertoast"; ...@@ -73,7 +74,7 @@ static NSString *const CHANNEL_NAME = @"PonnamKarthik/fluttertoast";
style:style style:style
completion:^(BOOL didTap){ completion:^(BOOL didTap){
NSNumber *boolNumber = [NSNumber numberWithBool:didTap]; NSNumber *boolNumber = [NSNumber numberWithBool:didTap];
printf("It came Here");
[self.channel invokeMethod:@"onTap" arguments:@{ [self.channel invokeMethod:@"onTap" arguments:@{
@"didTap" : boolNumber @"didTap" : boolNumber
}]; }];
......
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