Commit b3e83934 by Karthik Ponnam

3.0.6 ios build failed

parent 3efe5868
##[3.0.6]
- iOS build failed fixed
## [3.0.5]
- deprecation fixed
- hope ios notch fixed
## [3.0.4] ## [3.0.4]
- Android Color fix - Android Color fix
......
...@@ -13,7 +13,7 @@ If you dont want to use androidx then use `fluttertoast` version `2.2.11` ...@@ -13,7 +13,7 @@ If you dont want to use androidx then use `fluttertoast` version `2.2.11`
```yaml ```yaml
# add this line to your dependencies # add this line to your dependencies
fluttertoast: ^3.0.4 fluttertoast: ^3.0.6
``` ```
```dart ```dart
......
...@@ -421,9 +421,9 @@ static const NSString * CSToastQueueKey = @"CSToastQueueKey"; ...@@ -421,9 +421,9 @@ static const NSString * CSToastQueueKey = @"CSToastQueueKey";
if([point isKindOfClass:[NSString class]]) { if([point isKindOfClass:[NSString class]]) {
if([point caseInsensitiveCompare:CSToastPositionTop] == NSOrderedSame) { if([point caseInsensitiveCompare:CSToastPositionTop] == NSOrderedSame) {
return CGPointMake(self.bounds.size.width/2, (toast.frame.size.height / 2) + style.verticalPadding); return CGPointMake(self.bounds.size.width/2, (toast.frame.size.height / 2) + style.verticalPadding * 2);
} else if([point caseInsensitiveCompare:CSToastPositionCenter] == NSOrderedSame) { } else if([point caseInsensitiveCompare:CSToastPositionCenter] == NSOrderedSame) {
return CGPointMake(self.bounds.size.width / 2, self.bounds.size.height / 2) + style.verticalPadding; return CGPointMake(self.bounds.size.width / 2, (self.bounds.size.height / 2));
} }
} else if ([point isKindOfClass:[NSValue class]]) { } else if ([point isKindOfClass:[NSValue class]]) {
return [point CGPointValue]; return [point CGPointValue];
......
name: fluttertoast name: fluttertoast
description: Toast Library for FLutter description: Toast Library for FLutter
version: 3.0.4 version: 3.0.6
author: Karthik Ponnam <ponnamkarthik3@gmail.com> author: Karthik Ponnam <ponnamkarthik3@gmail.com>
homepage: https://github.com/PonnamKarthik/FlutterToast homepage: https://github.com/PonnamKarthik/FlutterToast
......
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