Commit b51a54a6 by Karthik

2.2.9

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