Commit b51a54a6 by Karthik

2.2.9

parent 667e1ce0
## [2.2.9]
* iOS build Failed fix
## [2.2.8]
* `Fluttertoast.cancel()` added
......
......@@ -13,7 +13,7 @@ If your project uses androidx then use `fluttertoast` version `2.2.4` or `2.2.5`
```yaml
# add this line to your dependencies
fluttertoast: ^2.2.8
fluttertoast: ^2.2.9
```
```dart
......
......@@ -35,4 +35,5 @@ android {
dependencies {
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:support-compat:27.1.1'
}
......@@ -38,6 +38,7 @@ static NSString *const CHANNEL_NAME = @"PonnamKarthik/fluttertoast";
- (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result {
if([@"cancel" isEqualToString:call.method]) {
[[UIApplication sharedApplication].delegate.window.rootViewController.view hideAllToasts];
result(true);
} else if ([@"showToast" isEqualToString:call.method]) {
NSString *msg = call.arguments[@"msg"];
NSString *gravity = call.arguments[@"gravity"];
......@@ -83,7 +84,7 @@ static NSString *const CHANNEL_NAME = @"PonnamKarthik/fluttertoast";
style:style
];
}
result(true)
result(true);
} else {
result(FlutterMethodNotImplemented);
......
name: fluttertoast
description: Toast Library for FLutter
version: 2.2.8
version: 2.2.9
author: Karthik Ponnam <ponnamkarthik3@gmail.com>
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