diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 8552cf4a..86121a55 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -15,7 +15,9 @@
+
+
@@ -53,12 +55,12 @@
-
+
-
-
+
+
@@ -67,10 +69,19 @@
+
+
+
+
+
+
+
+
+
-
+
@@ -101,7 +112,6 @@
- hide()
loadUrl
showWebPage
InAppBrowserClient
@@ -131,6 +141,7 @@
InAppBrowser
presentationStyle
###
+ inAppBrowserFallback
activity.getPreferences(0)
@@ -167,11 +178,11 @@
-
+
@@ -395,13 +406,13 @@
-
+
-
+
@@ -681,13 +692,6 @@
-
-
-
-
-
-
-
@@ -705,13 +709,6 @@
-
-
-
-
-
-
-
@@ -729,6 +726,13 @@
+
+
+
+
+
+
+
@@ -737,8 +741,8 @@
-
-
+
+
@@ -746,6 +750,13 @@
+
+
+
+
+
+
+
diff --git a/README.md b/README.md
index 7e5dc8e5..8d9a6ed6 100644
--- a/README.md
+++ b/README.md
@@ -116,7 +116,7 @@ class _MyAppState extends State {
super.initState();
// listen for post messages coming from the JavaScript side
- int indexTest = inAppBrowserFallback.addJavaScriptHandler("handlerNameTest", (arguments) async {
+ int indexTest = inAppBrowser.addJavaScriptHandler("handlerNameTest", (arguments) async {
print("handlerNameTest arguments");
print(arguments); // it prints: [1, 5, string, {key: 5}, [4, 6, 8]]
});
diff --git a/pubspec.yaml b/pubspec.yaml
index bc8ab1bc..d21e5147 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,6 +1,6 @@
name: flutter_inappbrowser
description: A Flutter plugin that allows you to open an in-app browser window. (inspired by the popular cordova-plugin-inappbrowser).
-version: 0.3.0
+version: 0.3.1
author: Lorenzo Pichilli
homepage: https://github.com/pichillilorenzo/flutter_inappbrowser