diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 71a85d4c..98dd3d6d 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -15,7 +15,10 @@ - + + + + @@ -35,8 +38,8 @@ - - + + @@ -47,8 +50,8 @@ - - + + @@ -56,7 +59,7 @@ - + @@ -68,11 +71,20 @@ - + - - + + + + + + + + + + + @@ -159,11 +171,11 @@ @@ -647,40 +659,16 @@ - - - - - - - - - + + - - - - - - - - - - - - - - - - - @@ -691,6 +679,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/CHANGELOG.md b/CHANGELOG.md index db02cffc..922ca138 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.5.51 + +- updated `pubspec.yaml` +- updated `README.md` + ## 0.5.5 - added `getUrl` method for the `InAppWebViewController` class diff --git a/lib/flutter_inappbrowser.dart b/lib/flutter_inappbrowser.dart index 11011279..12481bc9 100644 --- a/lib/flutter_inappbrowser.dart +++ b/lib/flutter_inappbrowser.dart @@ -524,15 +524,15 @@ class ChromeSafariBrowser { } } -typedef void onWebViewCreatedCallback(InAppWebViewController controller); -typedef void onWebViewLoadStartCallback(InAppWebViewController controller, String url); -typedef void onWebViewLoadStopCallback(InAppWebViewController controller, String url); -typedef void onWebViewLoadErrorCallback(InAppWebViewController controller, String url, int code, String message); -typedef void onWebViewProgressChangedCallback(InAppWebViewController controller, int progress); -typedef void onWebViewConsoleMessageCallback(InAppWebViewController controller, ConsoleMessage consoleMessage); -typedef void shouldOverrideUrlLoadingCallback(InAppWebViewController controller, String url); -typedef void onWebViewLoadResourceCallback(InAppWebViewController controller, WebResourceResponse response, WebResourceRequest request); -typedef void onWebViewScrollChangedCallback(InAppWebViewController controller, int x, int y); +typedef onWebViewCreatedCallback = void Function(InAppWebViewController controller); +typedef onWebViewLoadStartCallback = void Function(InAppWebViewController controller, String url); +typedef onWebViewLoadStopCallback = void Function(InAppWebViewController controller, String url); +typedef onWebViewLoadErrorCallback = void Function(InAppWebViewController controller, String url, int code, String message); +typedef onWebViewProgressChangedCallback = void Function(InAppWebViewController controller, int progress); +typedef onWebViewConsoleMessageCallback = void Function(InAppWebViewController controller, ConsoleMessage consoleMessage); +typedef shouldOverrideUrlLoadingCallback = void Function(InAppWebViewController controller, String url); +typedef onWebViewLoadResourceCallback = void Function(InAppWebViewController controller, WebResourceResponse response, WebResourceRequest request); +typedef onWebViewScrollChangedCallback = void Function(InAppWebViewController controller, int x, int y); ///Initial [data] as a content for an [InAppWebView] instance, using [baseUrl] as the base URL for it. ///The [mimeType] property specifies the format of the data. diff --git a/pubspec.yaml b/pubspec.yaml index 46eebaa6..8dc7b493 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,11 +1,11 @@ name: flutter_inappbrowser -description: A Flutter plugin that allows you to add an inline webview or open an in-app browser window. (inspired by the popular cordova-plugin-inappbrowser). -version: 0.5.5 +description: A Flutter plugin that allows you to add an inline webview or open an in-app browser window (inspired by the popular cordova-plugin-inappbrowser). +version: 0.5.51 author: Lorenzo Pichilli homepage: https://github.com/pichillilorenzo/flutter_inappbrowser environment: - sdk: ">=2.1.0-dev.7.1 <3.0.0" + sdk: ">=2.0.0-dev <3.0.0" flutter: ">=0.10.1 <2.0.0" dependencies: