Commit 9e385713 by Zac Chan

added NSlogs

parent 84010efe
...@@ -55,7 +55,7 @@ static NSString *const CHANNEL_NAME = @"PonnamKarthik/fluttertoast"; ...@@ -55,7 +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"); NSLog(@"The code runs through here!");
CSToastStyle *style = [[CSToastStyle alloc] initWithDefaultStyle]; CSToastStyle *style = [[CSToastStyle alloc] initWithDefaultStyle];
...@@ -74,7 +74,7 @@ static NSString *const CHANNEL_NAME = @"PonnamKarthik/fluttertoast"; ...@@ -74,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"); NSLog(@"The code runs through here! 2");
[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