diff --git a/.gradle/4.4.1/fileChanges/last-build.bin b/.gradle/4.4.1/fileChanges/last-build.bin
deleted file mode 100755
index f76dd238..00000000
Binary files a/.gradle/4.4.1/fileChanges/last-build.bin and /dev/null differ
diff --git a/.gradle/4.4.1/fileHashes/fileHashes.lock b/.gradle/4.4.1/fileHashes/fileHashes.lock
deleted file mode 100755
index 3ae95879..00000000
Binary files a/.gradle/4.4.1/fileHashes/fileHashes.lock and /dev/null differ
diff --git a/.gradle/4.4.1/taskHistory/taskHistory.lock b/.gradle/4.4.1/taskHistory/taskHistory.lock
deleted file mode 100755
index b18ddce2..00000000
Binary files a/.gradle/4.4.1/taskHistory/taskHistory.lock and /dev/null differ
diff --git a/.gradle/5.1.1/fileChanges/last-build.bin b/.gradle/5.1.1/fileChanges/last-build.bin
deleted file mode 100755
index f76dd238..00000000
Binary files a/.gradle/5.1.1/fileChanges/last-build.bin and /dev/null differ
diff --git a/.gradle/5.1.1/fileHashes/fileHashes.lock b/.gradle/5.1.1/fileHashes/fileHashes.lock
deleted file mode 100755
index 015c9815..00000000
Binary files a/.gradle/5.1.1/fileHashes/fileHashes.lock and /dev/null differ
diff --git a/.gradle/5.1.1/gc.properties b/.gradle/5.1.1/gc.properties
deleted file mode 100755
index e69de29b..00000000
diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock
deleted file mode 100755
index 0c14d8d1..00000000
Binary files a/.gradle/buildOutputCleanup/buildOutputCleanup.lock and /dev/null differ
diff --git a/.gradle/buildOutputCleanup/cache.properties b/.gradle/buildOutputCleanup/cache.properties
deleted file mode 100755
index 6fd10dc6..00000000
--- a/.gradle/buildOutputCleanup/cache.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-#Sat Jun 01 15:11:27 CEST 2019
-gradle.version=5.1.1
diff --git a/.gradle/vcs-1/gc.properties b/.gradle/vcs-1/gc.properties
deleted file mode 100755
index e69de29b..00000000
diff --git a/README.md b/README.md
index 44930716..0715878b 100755
--- a/README.md
+++ b/README.md
@@ -34,7 +34,7 @@ Migrating from version `5.x.x` is easy! Follow the online [Migration guide](http
- [Official blog: inappwebview.dev/blog](https://inappwebview.dev/blog/)
- Find open source projects on the [Official Showcase page: inappwebview.dev/showcase](https://inappwebview.dev/showcase/)
- Check the [flutter_inappwebview_examples](https://github.com/pichillilorenzo/flutter_inappwebview_examples) repository for project examples
-- Check the [example/integration_test/webview_flutter_test.dart](https://github.com/pichillilorenzo/flutter_inappwebview/blob/master/example/integration_test/webview_flutter_test.dart) file for other code examples
+- Check the [flutter_inappwebview/example/integration_test/webview_flutter_test.dart](https://github.com/pichillilorenzo/flutter_inappwebview/blob/master/flutter_inappwebview/example/integration_test/webview_flutter_test.dart) file for other code examples
- [Flutter Browser App](https://github.com/pichillilorenzo/flutter_browser_app): A Full-Featured Mobile Browser App (such as the Google Chrome mobile browser) created using Flutter and the features offered by the flutter_inappwebview plugin
## Showcase - Who use it
diff --git a/.pubignore b/flutter_inappwebview/.gitignore
old mode 100755
new mode 100644
similarity index 65%
rename from .pubignore
rename to flutter_inappwebview/.gitignore
index 6814d022..96486fd9
--- a/.pubignore
+++ b/flutter_inappwebview/.gitignore
@@ -8,6 +8,7 @@
.buildlog/
.history
.svn/
+migrate_working_dir/
# IntelliJ related
*.iml
@@ -27,18 +28,3 @@
.dart_tool/
.packages
build/
-.fvm/
-
-flutter_driver_tests.log
-tool/chromedriver
-tool/chromedriver.*
-
-scripts/
-dev_packages/
-flutter_inappwebview_platform_interface/
-flutter_inappwebview_android/
-flutter_inappwebview_ios/
-flutter_inappwebview_macos/
-flutter_inappwebview_web/
-test_node_server/
-.idea/
\ No newline at end of file
diff --git a/flutter_inappwebview/.metadata b/flutter_inappwebview/.metadata
new file mode 100644
index 00000000..f4bdae94
--- /dev/null
+++ b/flutter_inappwebview/.metadata
@@ -0,0 +1,39 @@
+# This file tracks properties of this Flutter project.
+# Used by Flutter tool to assess capabilities and perform upgrades etc.
+#
+# This file should be version controlled and should not be manually edited.
+
+version:
+ revision: "6c4930c4ac86fb286f30e31d0ec8bffbcbb9953e"
+ channel: "stable"
+
+project_type: plugin
+
+# Tracks metadata for the flutter migrate command
+migration:
+ platforms:
+ - platform: root
+ create_revision: 6c4930c4ac86fb286f30e31d0ec8bffbcbb9953e
+ base_revision: 6c4930c4ac86fb286f30e31d0ec8bffbcbb9953e
+ - platform: android
+ create_revision: 6c4930c4ac86fb286f30e31d0ec8bffbcbb9953e
+ base_revision: 6c4930c4ac86fb286f30e31d0ec8bffbcbb9953e
+ - platform: ios
+ create_revision: 6c4930c4ac86fb286f30e31d0ec8bffbcbb9953e
+ base_revision: 6c4930c4ac86fb286f30e31d0ec8bffbcbb9953e
+ - platform: macos
+ create_revision: 6c4930c4ac86fb286f30e31d0ec8bffbcbb9953e
+ base_revision: 6c4930c4ac86fb286f30e31d0ec8bffbcbb9953e
+ - platform: web
+ create_revision: 6c4930c4ac86fb286f30e31d0ec8bffbcbb9953e
+ base_revision: 6c4930c4ac86fb286f30e31d0ec8bffbcbb9953e
+
+ # User provided section
+
+ # List of Local paths (relative to this file) that should be
+ # ignored by the migrate tool.
+ #
+ # Files that are not part of the templates will be ignored by default.
+ unmanaged_files:
+ - 'lib/main.dart'
+ - 'ios/Runner.xcodeproj/project.pbxproj'
diff --git a/CHANGELOG.md b/flutter_inappwebview/CHANGELOG.md
similarity index 100%
rename from CHANGELOG.md
rename to flutter_inappwebview/CHANGELOG.md
diff --git a/flutter_inappwebview/LICENSE b/flutter_inappwebview/LICENSE
new file mode 100755
index 00000000..4dada16d
--- /dev/null
+++ b/flutter_inappwebview/LICENSE
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright 2022 Lorenzo Pichilli
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/flutter_inappwebview/README.md b/flutter_inappwebview/README.md
new file mode 100755
index 00000000..0715878b
--- /dev/null
+++ b/flutter_inappwebview/README.md
@@ -0,0 +1,197 @@
+
+
+# Flutter InAppWebView Plugin [![Share on Twitter](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Flutter%20InAppBrowser%20plugin!&url=https://github.com/pichillilorenzo/flutter_inappwebview&hashtags=flutter,flutterio,dart,dartlang,webview) [![Share on Facebook](https://img.shields.io/badge/share-facebook-blue.svg?longCache=true&style=flat&colorB=%234267b2)](https://www.facebook.com/sharer/sharer.php?u=https%3A//github.com/pichillilorenzo/flutter_inappwebview)
+
+![InAppWebView-logo](https://user-images.githubusercontent.com/5956938/195422744-bdcfed16-73f0-4bc9-94ab-ecf10771a1c4.png)
+
+
+[![All Contributors](https://img.shields.io/badge/all_contributors-80-orange.svg?style=flat-square)](#contributors-)
+
+
+[![Pub](https://img.shields.io/pub/v/flutter_inappwebview?include_prereleases)](https://pub.dartlang.org/packages/flutter_inappwebview)
+[![Pub Points](https://img.shields.io/pub/points/flutter_inappwebview)](https://pub.dev/packages/flutter_inappwebview/score)
+[![Pub Popularity](https://img.shields.io/pub/popularity/flutter_inappwebview)](https://pub.dev/packages/flutter_inappwebview/score)
+[![Pub Likes](https://img.shields.io/pub/likes/flutter_inappwebview)](https://pub.dev/packages/flutter_inappwebview/score)
+[![Awesome Flutter](https://img.shields.io/badge/Awesome-Flutter-blue.svg?longCache=true&style=flat-square)](https://stackoverflow.com/questions/tagged/flutter-inappwebview)
+[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](/LICENSE)
+
+[![Donate to this project](https://img.shields.io/badge/support-donate-yellow.svg)](https://inappwebview.dev/donate/)
+[![GitHub forks](https://img.shields.io/github/forks/pichillilorenzo/flutter_inappwebview?style=social)](https://github.com/pichillilorenzo/flutter_inappwebview)
+[![GitHub stars](https://img.shields.io/github/stars/pichillilorenzo/flutter_inappwebview?style=social)](https://github.com/pichillilorenzo/flutter_inappwebview)
+
+A Flutter plugin that allows you to add an inline webview, to use an headless webview, and to open an in-app browser window.
+
+
+
+## New Version 6.x.x is OUT NOW!
+
+Migrating from version `5.x.x` is easy! Follow the online [Migration guide](https://inappwebview.dev/docs/migration-guide).
+
+## Articles/Resources
+
+- [Official documentation: inappwebview.dev/docs](https://inappwebview.dev/docs/intro)
+- Read the online [API Reference](https://pub.dartlang.org/documentation/flutter_inappwebview/latest/) to get the **full API documentation**.
+- [Official blog: inappwebview.dev/blog](https://inappwebview.dev/blog/)
+- Find open source projects on the [Official Showcase page: inappwebview.dev/showcase](https://inappwebview.dev/showcase/)
+- Check the [flutter_inappwebview_examples](https://github.com/pichillilorenzo/flutter_inappwebview_examples) repository for project examples
+- Check the [flutter_inappwebview/example/integration_test/webview_flutter_test.dart](https://github.com/pichillilorenzo/flutter_inappwebview/blob/master/flutter_inappwebview/example/integration_test/webview_flutter_test.dart) file for other code examples
+- [Flutter Browser App](https://github.com/pichillilorenzo/flutter_browser_app): A Full-Featured Mobile Browser App (such as the Google Chrome mobile browser) created using Flutter and the features offered by the flutter_inappwebview plugin
+
+## Showcase - Who use it
+
+Check the [Showcase](https://inappwebview.dev/showcase/) page to see an open list of Apps built with **Flutter** and **Flutter InAppWebView**.
+
+#### Are you using the **Flutter InAppWebView** plugin and would you like to add your App there?
+
+Send a submission request to the [Submit App](https://inappwebview.dev/submit-app/) page!
+
+## Requirements
+
+- Dart sdk: ">=2.17.0 <4.0.0"
+- Flutter: ">=3.0.0"
+- Android: `minSdkVersion 19` and add support for `androidx` (see [AndroidX Migration](https://docs.flutter.dev/development/platform-integration/android/androidx-migration) to migrate an existing app)
+- iOS 9.0+: `--ios-language swift`, Xcode version `>= 14.3`
+- MacOS 10.11+: Xcode version `>= 14.3`
+
+## Installation
+
+Add `flutter_inappwebview` as a [dependency in your pubspec.yaml file](https://flutter.io/using-packages/).
+
+### Installation - Web support
+
+To make it work properly on the Web platform, you need to add the `web_support.js` file inside the `` of your `web/index.html` file:
+
+```html
+
+
+
+
+
+```
+
+## Support
+
+Did you find this plugin useful? Please consider to [make a donation](https://inappwebview.dev/donate/) to help improve it!
+
+## Contributors ✨
+
+Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
+
+
+
+
+
+
+
+
+
+
+
+This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
diff --git a/analysis_options.yaml b/flutter_inappwebview/analysis_options.yaml
similarity index 100%
rename from analysis_options.yaml
rename to flutter_inappwebview/analysis_options.yaml
diff --git a/build.yaml b/flutter_inappwebview/build.yaml
similarity index 100%
rename from build.yaml
rename to flutter_inappwebview/build.yaml
diff --git a/example/.gitignore b/flutter_inappwebview/example/.gitignore
similarity index 100%
rename from example/.gitignore
rename to flutter_inappwebview/example/.gitignore
diff --git a/example/.metadata b/flutter_inappwebview/example/.metadata
similarity index 100%
rename from example/.metadata
rename to flutter_inappwebview/example/.metadata
diff --git a/example/README.md b/flutter_inappwebview/example/README.md
similarity index 100%
rename from example/README.md
rename to flutter_inappwebview/example/README.md
diff --git a/example/analysis_options.yaml b/flutter_inappwebview/example/analysis_options.yaml
similarity index 100%
rename from example/analysis_options.yaml
rename to flutter_inappwebview/example/analysis_options.yaml
diff --git a/example/android/.gitignore b/flutter_inappwebview/example/android/.gitignore
similarity index 100%
rename from example/android/.gitignore
rename to flutter_inappwebview/example/android/.gitignore
diff --git a/example/android/app/build.gradle b/flutter_inappwebview/example/android/app/build.gradle
similarity index 100%
rename from example/android/app/build.gradle
rename to flutter_inappwebview/example/android/app/build.gradle
diff --git a/example/android/app/src/debug/AndroidManifest.xml b/flutter_inappwebview/example/android/app/src/debug/AndroidManifest.xml
similarity index 100%
rename from example/android/app/src/debug/AndroidManifest.xml
rename to flutter_inappwebview/example/android/app/src/debug/AndroidManifest.xml
diff --git a/example/android/app/src/main/AndroidManifest.xml b/flutter_inappwebview/example/android/app/src/main/AndroidManifest.xml
similarity index 100%
rename from example/android/app/src/main/AndroidManifest.xml
rename to flutter_inappwebview/example/android/app/src/main/AndroidManifest.xml
diff --git a/example/android/app/src/main/java/com/pichillilorenzo/flutterwebviewexample/EmbedderV1Activity.java b/flutter_inappwebview/example/android/app/src/main/java/com/pichillilorenzo/flutterwebviewexample/EmbedderV1Activity.java
similarity index 100%
rename from example/android/app/src/main/java/com/pichillilorenzo/flutterwebviewexample/EmbedderV1Activity.java
rename to flutter_inappwebview/example/android/app/src/main/java/com/pichillilorenzo/flutterwebviewexample/EmbedderV1Activity.java
diff --git a/example/android/app/src/main/java/com/pichillilorenzo/flutterwebviewexample/MainActivity.java b/flutter_inappwebview/example/android/app/src/main/java/com/pichillilorenzo/flutterwebviewexample/MainActivity.java
similarity index 100%
rename from example/android/app/src/main/java/com/pichillilorenzo/flutterwebviewexample/MainActivity.java
rename to flutter_inappwebview/example/android/app/src/main/java/com/pichillilorenzo/flutterwebviewexample/MainActivity.java
diff --git a/example/android/app/src/main/res/drawable-v21/launch_background.xml b/flutter_inappwebview/example/android/app/src/main/res/drawable-v21/launch_background.xml
similarity index 100%
rename from example/android/app/src/main/res/drawable-v21/launch_background.xml
rename to flutter_inappwebview/example/android/app/src/main/res/drawable-v21/launch_background.xml
diff --git a/example/android/app/src/main/res/drawable/launch_background.xml b/flutter_inappwebview/example/android/app/src/main/res/drawable/launch_background.xml
similarity index 100%
rename from example/android/app/src/main/res/drawable/launch_background.xml
rename to flutter_inappwebview/example/android/app/src/main/res/drawable/launch_background.xml
diff --git a/example/android/app/src/main/res/layout/remote_view.xml b/flutter_inappwebview/example/android/app/src/main/res/layout/remote_view.xml
similarity index 100%
rename from example/android/app/src/main/res/layout/remote_view.xml
rename to flutter_inappwebview/example/android/app/src/main/res/layout/remote_view.xml
diff --git a/example/android/app/src/main/res/layout/remote_view_2.xml b/flutter_inappwebview/example/android/app/src/main/res/layout/remote_view_2.xml
similarity index 100%
rename from example/android/app/src/main/res/layout/remote_view_2.xml
rename to flutter_inappwebview/example/android/app/src/main/res/layout/remote_view_2.xml
diff --git a/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/flutter_inappwebview/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
similarity index 100%
rename from example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
rename to flutter_inappwebview/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
diff --git a/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/flutter_inappwebview/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
similarity index 100%
rename from example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
rename to flutter_inappwebview/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
diff --git a/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/flutter_inappwebview/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
similarity index 100%
rename from example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
rename to flutter_inappwebview/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
diff --git a/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/flutter_inappwebview/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
similarity index 100%
rename from example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
rename to flutter_inappwebview/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
diff --git a/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/flutter_inappwebview/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
similarity index 100%
rename from example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
rename to flutter_inappwebview/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
diff --git a/example/android/app/src/main/res/values-night/styles.xml b/flutter_inappwebview/example/android/app/src/main/res/values-night/styles.xml
similarity index 100%
rename from example/android/app/src/main/res/values-night/styles.xml
rename to flutter_inappwebview/example/android/app/src/main/res/values-night/styles.xml
diff --git a/example/android/app/src/main/res/values/strings.xml b/flutter_inappwebview/example/android/app/src/main/res/values/strings.xml
similarity index 100%
rename from example/android/app/src/main/res/values/strings.xml
rename to flutter_inappwebview/example/android/app/src/main/res/values/strings.xml
diff --git a/example/android/app/src/main/res/values/styles.xml b/flutter_inappwebview/example/android/app/src/main/res/values/styles.xml
similarity index 100%
rename from example/android/app/src/main/res/values/styles.xml
rename to flutter_inappwebview/example/android/app/src/main/res/values/styles.xml
diff --git a/example/android/app/src/profile/AndroidManifest.xml b/flutter_inappwebview/example/android/app/src/profile/AndroidManifest.xml
similarity index 100%
rename from example/android/app/src/profile/AndroidManifest.xml
rename to flutter_inappwebview/example/android/app/src/profile/AndroidManifest.xml
diff --git a/example/android/build.gradle b/flutter_inappwebview/example/android/build.gradle
similarity index 100%
rename from example/android/build.gradle
rename to flutter_inappwebview/example/android/build.gradle
diff --git a/example/android/gradle.properties b/flutter_inappwebview/example/android/gradle.properties
similarity index 100%
rename from example/android/gradle.properties
rename to flutter_inappwebview/example/android/gradle.properties
diff --git a/example/android/gradle/wrapper/gradle-wrapper.properties b/flutter_inappwebview/example/android/gradle/wrapper/gradle-wrapper.properties
similarity index 100%
rename from example/android/gradle/wrapper/gradle-wrapper.properties
rename to flutter_inappwebview/example/android/gradle/wrapper/gradle-wrapper.properties
diff --git a/example/android/settings.gradle b/flutter_inappwebview/example/android/settings.gradle
similarity index 100%
rename from example/android/settings.gradle
rename to flutter_inappwebview/example/android/settings.gradle
diff --git a/example/android/settings_aar.gradle b/flutter_inappwebview/example/android/settings_aar.gradle
similarity index 100%
rename from example/android/settings_aar.gradle
rename to flutter_inappwebview/example/android/settings_aar.gradle
diff --git a/example/assets/css/style.css b/flutter_inappwebview/example/assets/css/style.css
similarity index 100%
rename from example/assets/css/style.css
rename to flutter_inappwebview/example/assets/css/style.css
diff --git a/example/assets/favicon.ico b/flutter_inappwebview/example/assets/favicon.ico
similarity index 100%
rename from example/assets/favicon.ico
rename to flutter_inappwebview/example/assets/favicon.ico
diff --git a/example/assets/images/flutter-logo.jpg b/flutter_inappwebview/example/assets/images/flutter-logo.jpg
similarity index 100%
rename from example/assets/images/flutter-logo.jpg
rename to flutter_inappwebview/example/assets/images/flutter-logo.jpg
diff --git a/example/assets/images/flutter-logo.png b/flutter_inappwebview/example/assets/images/flutter-logo.png
similarity index 100%
rename from example/assets/images/flutter-logo.png
rename to flutter_inappwebview/example/assets/images/flutter-logo.png
diff --git a/example/assets/images/flutter-logo.svg b/flutter_inappwebview/example/assets/images/flutter-logo.svg
similarity index 100%
rename from example/assets/images/flutter-logo.svg
rename to flutter_inappwebview/example/assets/images/flutter-logo.svg
diff --git a/example/assets/index.html b/flutter_inappwebview/example/assets/index.html
similarity index 100%
rename from example/assets/index.html
rename to flutter_inappwebview/example/assets/index.html
diff --git a/example/assets/js/main.js b/flutter_inappwebview/example/assets/js/main.js
similarity index 100%
rename from example/assets/js/main.js
rename to flutter_inappwebview/example/assets/js/main.js
diff --git a/example/assets/page-1.html b/flutter_inappwebview/example/assets/page-1.html
similarity index 100%
rename from example/assets/page-1.html
rename to flutter_inappwebview/example/assets/page-1.html
diff --git a/example/assets/page-2.html b/flutter_inappwebview/example/assets/page-2.html
similarity index 100%
rename from example/assets/page-2.html
rename to flutter_inappwebview/example/assets/page-2.html
diff --git a/example/assets/sample_audio.ogg b/flutter_inappwebview/example/assets/sample_audio.ogg
similarity index 100%
rename from example/assets/sample_audio.ogg
rename to flutter_inappwebview/example/assets/sample_audio.ogg
diff --git a/example/assets/sample_video.mp4 b/flutter_inappwebview/example/assets/sample_video.mp4
similarity index 100%
rename from example/assets/sample_video.mp4
rename to flutter_inappwebview/example/assets/sample_video.mp4
diff --git a/example/assets/web-auth.html b/flutter_inappwebview/example/assets/web-auth.html
similarity index 100%
rename from example/assets/web-auth.html
rename to flutter_inappwebview/example/assets/web-auth.html
diff --git a/example/assets/website/index.html b/flutter_inappwebview/example/assets/website/index.html
similarity index 100%
rename from example/assets/website/index.html
rename to flutter_inappwebview/example/assets/website/index.html
diff --git a/example/integration_test/chrome_safari_browser/custom_menu_item.dart b/flutter_inappwebview/example/integration_test/chrome_safari_browser/custom_menu_item.dart
similarity index 100%
rename from example/integration_test/chrome_safari_browser/custom_menu_item.dart
rename to flutter_inappwebview/example/integration_test/chrome_safari_browser/custom_menu_item.dart
diff --git a/example/integration_test/chrome_safari_browser/custom_tabs.dart b/flutter_inappwebview/example/integration_test/chrome_safari_browser/custom_tabs.dart
similarity index 100%
rename from example/integration_test/chrome_safari_browser/custom_tabs.dart
rename to flutter_inappwebview/example/integration_test/chrome_safari_browser/custom_tabs.dart
diff --git a/example/integration_test/chrome_safari_browser/main.dart b/flutter_inappwebview/example/integration_test/chrome_safari_browser/main.dart
similarity index 100%
rename from example/integration_test/chrome_safari_browser/main.dart
rename to flutter_inappwebview/example/integration_test/chrome_safari_browser/main.dart
diff --git a/example/integration_test/chrome_safari_browser/open_and_close.dart b/flutter_inappwebview/example/integration_test/chrome_safari_browser/open_and_close.dart
similarity index 100%
rename from example/integration_test/chrome_safari_browser/open_and_close.dart
rename to flutter_inappwebview/example/integration_test/chrome_safari_browser/open_and_close.dart
diff --git a/example/integration_test/chrome_safari_browser/sf_safari_view_controller.dart b/flutter_inappwebview/example/integration_test/chrome_safari_browser/sf_safari_view_controller.dart
similarity index 100%
rename from example/integration_test/chrome_safari_browser/sf_safari_view_controller.dart
rename to flutter_inappwebview/example/integration_test/chrome_safari_browser/sf_safari_view_controller.dart
diff --git a/example/integration_test/chrome_safari_browser/trusted_web_activity.dart b/flutter_inappwebview/example/integration_test/chrome_safari_browser/trusted_web_activity.dart
similarity index 100%
rename from example/integration_test/chrome_safari_browser/trusted_web_activity.dart
rename to flutter_inappwebview/example/integration_test/chrome_safari_browser/trusted_web_activity.dart
diff --git a/example/integration_test/constants.dart b/flutter_inappwebview/example/integration_test/constants.dart
similarity index 100%
rename from example/integration_test/constants.dart
rename to flutter_inappwebview/example/integration_test/constants.dart
diff --git a/example/integration_test/cookie_manager/main.dart b/flutter_inappwebview/example/integration_test/cookie_manager/main.dart
similarity index 100%
rename from example/integration_test/cookie_manager/main.dart
rename to flutter_inappwebview/example/integration_test/cookie_manager/main.dart
diff --git a/example/integration_test/cookie_manager/set_get_delete.dart b/flutter_inappwebview/example/integration_test/cookie_manager/set_get_delete.dart
similarity index 100%
rename from example/integration_test/cookie_manager/set_get_delete.dart
rename to flutter_inappwebview/example/integration_test/cookie_manager/set_get_delete.dart
diff --git a/example/integration_test/find_interaction_controller/find_interactions.dart b/flutter_inappwebview/example/integration_test/find_interaction_controller/find_interactions.dart
similarity index 100%
rename from example/integration_test/find_interaction_controller/find_interactions.dart
rename to flutter_inappwebview/example/integration_test/find_interaction_controller/find_interactions.dart
diff --git a/example/integration_test/find_interaction_controller/main.dart b/flutter_inappwebview/example/integration_test/find_interaction_controller/main.dart
similarity index 100%
rename from example/integration_test/find_interaction_controller/main.dart
rename to flutter_inappwebview/example/integration_test/find_interaction_controller/main.dart
diff --git a/example/integration_test/headless_in_app_webview/convert_to_inappwebview.dart b/flutter_inappwebview/example/integration_test/headless_in_app_webview/convert_to_inappwebview.dart
similarity index 100%
rename from example/integration_test/headless_in_app_webview/convert_to_inappwebview.dart
rename to flutter_inappwebview/example/integration_test/headless_in_app_webview/convert_to_inappwebview.dart
diff --git a/example/integration_test/headless_in_app_webview/custom_size.dart b/flutter_inappwebview/example/integration_test/headless_in_app_webview/custom_size.dart
similarity index 100%
rename from example/integration_test/headless_in_app_webview/custom_size.dart
rename to flutter_inappwebview/example/integration_test/headless_in_app_webview/custom_size.dart
diff --git a/example/integration_test/headless_in_app_webview/main.dart b/flutter_inappwebview/example/integration_test/headless_in_app_webview/main.dart
similarity index 100%
rename from example/integration_test/headless_in_app_webview/main.dart
rename to flutter_inappwebview/example/integration_test/headless_in_app_webview/main.dart
diff --git a/example/integration_test/headless_in_app_webview/run_and_dispose.dart b/flutter_inappwebview/example/integration_test/headless_in_app_webview/run_and_dispose.dart
similarity index 100%
rename from example/integration_test/headless_in_app_webview/run_and_dispose.dart
rename to flutter_inappwebview/example/integration_test/headless_in_app_webview/run_and_dispose.dart
diff --git a/example/integration_test/headless_in_app_webview/set_get_settings.dart b/flutter_inappwebview/example/integration_test/headless_in_app_webview/set_get_settings.dart
similarity index 100%
rename from example/integration_test/headless_in_app_webview/set_get_settings.dart
rename to flutter_inappwebview/example/integration_test/headless_in_app_webview/set_get_settings.dart
diff --git a/example/integration_test/headless_in_app_webview/take_screenshot.dart b/flutter_inappwebview/example/integration_test/headless_in_app_webview/take_screenshot.dart
similarity index 100%
rename from example/integration_test/headless_in_app_webview/take_screenshot.dart
rename to flutter_inappwebview/example/integration_test/headless_in_app_webview/take_screenshot.dart
diff --git a/example/integration_test/in_app_browser/custom_menu_items.dart b/flutter_inappwebview/example/integration_test/in_app_browser/custom_menu_items.dart
similarity index 100%
rename from example/integration_test/in_app_browser/custom_menu_items.dart
rename to flutter_inappwebview/example/integration_test/in_app_browser/custom_menu_items.dart
diff --git a/example/integration_test/in_app_browser/hide_and_show.dart b/flutter_inappwebview/example/integration_test/in_app_browser/hide_and_show.dart
similarity index 100%
rename from example/integration_test/in_app_browser/hide_and_show.dart
rename to flutter_inappwebview/example/integration_test/in_app_browser/hide_and_show.dart
diff --git a/example/integration_test/in_app_browser/main.dart b/flutter_inappwebview/example/integration_test/in_app_browser/main.dart
similarity index 100%
rename from example/integration_test/in_app_browser/main.dart
rename to flutter_inappwebview/example/integration_test/in_app_browser/main.dart
diff --git a/example/integration_test/in_app_browser/open_data_and_close.dart b/flutter_inappwebview/example/integration_test/in_app_browser/open_data_and_close.dart
similarity index 100%
rename from example/integration_test/in_app_browser/open_data_and_close.dart
rename to flutter_inappwebview/example/integration_test/in_app_browser/open_data_and_close.dart
diff --git a/example/integration_test/in_app_browser/open_file_and_close.dart b/flutter_inappwebview/example/integration_test/in_app_browser/open_file_and_close.dart
similarity index 100%
rename from example/integration_test/in_app_browser/open_file_and_close.dart
rename to flutter_inappwebview/example/integration_test/in_app_browser/open_file_and_close.dart
diff --git a/example/integration_test/in_app_browser/open_url_and_close.dart b/flutter_inappwebview/example/integration_test/in_app_browser/open_url_and_close.dart
similarity index 100%
rename from example/integration_test/in_app_browser/open_url_and_close.dart
rename to flutter_inappwebview/example/integration_test/in_app_browser/open_url_and_close.dart
diff --git a/example/integration_test/in_app_browser/set_get_settings.dart b/flutter_inappwebview/example/integration_test/in_app_browser/set_get_settings.dart
similarity index 100%
rename from example/integration_test/in_app_browser/set_get_settings.dart
rename to flutter_inappwebview/example/integration_test/in_app_browser/set_get_settings.dart
diff --git a/example/integration_test/in_app_localhost_server/load_asset_file.dart b/flutter_inappwebview/example/integration_test/in_app_localhost_server/load_asset_file.dart
similarity index 100%
rename from example/integration_test/in_app_localhost_server/load_asset_file.dart
rename to flutter_inappwebview/example/integration_test/in_app_localhost_server/load_asset_file.dart
diff --git a/example/integration_test/in_app_localhost_server/main.dart b/flutter_inappwebview/example/integration_test/in_app_localhost_server/main.dart
similarity index 100%
rename from example/integration_test/in_app_localhost_server/main.dart
rename to flutter_inappwebview/example/integration_test/in_app_localhost_server/main.dart
diff --git a/example/integration_test/in_app_webview/apple_pay_api.dart b/flutter_inappwebview/example/integration_test/in_app_webview/apple_pay_api.dart
similarity index 100%
rename from example/integration_test/in_app_webview/apple_pay_api.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/apple_pay_api.dart
diff --git a/example/integration_test/in_app_webview/audio_playback_policy.dart b/flutter_inappwebview/example/integration_test/in_app_webview/audio_playback_policy.dart
similarity index 100%
rename from example/integration_test/in_app_webview/audio_playback_policy.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/audio_playback_policy.dart
diff --git a/example/integration_test/in_app_webview/clear_cache.dart b/flutter_inappwebview/example/integration_test/in_app_webview/clear_cache.dart
similarity index 100%
rename from example/integration_test/in_app_webview/clear_cache.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/clear_cache.dart
diff --git a/example/integration_test/in_app_webview/clear_client_cert_preferences.dart b/flutter_inappwebview/example/integration_test/in_app_webview/clear_client_cert_preferences.dart
similarity index 100%
rename from example/integration_test/in_app_webview/clear_client_cert_preferences.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/clear_client_cert_preferences.dart
diff --git a/example/integration_test/in_app_webview/clear_focus.dart b/flutter_inappwebview/example/integration_test/in_app_webview/clear_focus.dart
similarity index 100%
rename from example/integration_test/in_app_webview/clear_focus.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/clear_focus.dart
diff --git a/example/integration_test/in_app_webview/clear_ssl_preferences.dart b/flutter_inappwebview/example/integration_test/in_app_webview/clear_ssl_preferences.dart
similarity index 100%
rename from example/integration_test/in_app_webview/clear_ssl_preferences.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/clear_ssl_preferences.dart
diff --git a/example/integration_test/in_app_webview/content_blocker.dart b/flutter_inappwebview/example/integration_test/in_app_webview/content_blocker.dart
similarity index 100%
rename from example/integration_test/in_app_webview/content_blocker.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/content_blocker.dart
diff --git a/example/integration_test/in_app_webview/create_pdf.dart b/flutter_inappwebview/example/integration_test/in_app_webview/create_pdf.dart
similarity index 100%
rename from example/integration_test/in_app_webview/create_pdf.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/create_pdf.dart
diff --git a/example/integration_test/in_app_webview/get_certificate.dart b/flutter_inappwebview/example/integration_test/in_app_webview/get_certificate.dart
similarity index 100%
rename from example/integration_test/in_app_webview/get_certificate.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/get_certificate.dart
diff --git a/example/integration_test/in_app_webview/get_content_height.dart b/flutter_inappwebview/example/integration_test/in_app_webview/get_content_height.dart
similarity index 100%
rename from example/integration_test/in_app_webview/get_content_height.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/get_content_height.dart
diff --git a/example/integration_test/in_app_webview/get_current_web_view_package.dart b/flutter_inappwebview/example/integration_test/in_app_webview/get_current_web_view_package.dart
similarity index 100%
rename from example/integration_test/in_app_webview/get_current_web_view_package.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/get_current_web_view_package.dart
diff --git a/example/integration_test/in_app_webview/get_default_user_agent.dart b/flutter_inappwebview/example/integration_test/in_app_webview/get_default_user_agent.dart
similarity index 100%
rename from example/integration_test/in_app_webview/get_default_user_agent.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/get_default_user_agent.dart
diff --git a/example/integration_test/in_app_webview/get_favicons.dart b/flutter_inappwebview/example/integration_test/in_app_webview/get_favicons.dart
similarity index 100%
rename from example/integration_test/in_app_webview/get_favicons.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/get_favicons.dart
diff --git a/example/integration_test/in_app_webview/get_html.dart b/flutter_inappwebview/example/integration_test/in_app_webview/get_html.dart
similarity index 100%
rename from example/integration_test/in_app_webview/get_html.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/get_html.dart
diff --git a/example/integration_test/in_app_webview/get_meta_tags.dart b/flutter_inappwebview/example/integration_test/in_app_webview/get_meta_tags.dart
similarity index 100%
rename from example/integration_test/in_app_webview/get_meta_tags.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/get_meta_tags.dart
diff --git a/example/integration_test/in_app_webview/get_meta_theme_color.dart b/flutter_inappwebview/example/integration_test/in_app_webview/get_meta_theme_color.dart
similarity index 100%
rename from example/integration_test/in_app_webview/get_meta_theme_color.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/get_meta_theme_color.dart
diff --git a/example/integration_test/in_app_webview/get_original_url.dart b/flutter_inappwebview/example/integration_test/in_app_webview/get_original_url.dart
similarity index 100%
rename from example/integration_test/in_app_webview/get_original_url.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/get_original_url.dart
diff --git a/example/integration_test/in_app_webview/get_progress.dart b/flutter_inappwebview/example/integration_test/in_app_webview/get_progress.dart
similarity index 100%
rename from example/integration_test/in_app_webview/get_progress.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/get_progress.dart
diff --git a/example/integration_test/in_app_webview/get_title.dart b/flutter_inappwebview/example/integration_test/in_app_webview/get_title.dart
similarity index 100%
rename from example/integration_test/in_app_webview/get_title.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/get_title.dart
diff --git a/example/integration_test/in_app_webview/handles_url_scheme.dart b/flutter_inappwebview/example/integration_test/in_app_webview/handles_url_scheme.dart
similarity index 100%
rename from example/integration_test/in_app_webview/handles_url_scheme.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/handles_url_scheme.dart
diff --git a/example/integration_test/in_app_webview/http_auth_credential_database.dart b/flutter_inappwebview/example/integration_test/in_app_webview/http_auth_credential_database.dart
similarity index 100%
rename from example/integration_test/in_app_webview/http_auth_credential_database.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/http_auth_credential_database.dart
diff --git a/example/integration_test/in_app_webview/initial_url_request.dart b/flutter_inappwebview/example/integration_test/in_app_webview/initial_url_request.dart
similarity index 100%
rename from example/integration_test/in_app_webview/initial_url_request.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/initial_url_request.dart
diff --git a/example/integration_test/in_app_webview/inject_css.dart b/flutter_inappwebview/example/integration_test/in_app_webview/inject_css.dart
similarity index 100%
rename from example/integration_test/in_app_webview/inject_css.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/inject_css.dart
diff --git a/example/integration_test/in_app_webview/inject_javascript_file.dart b/flutter_inappwebview/example/integration_test/in_app_webview/inject_javascript_file.dart
similarity index 100%
rename from example/integration_test/in_app_webview/inject_javascript_file.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/inject_javascript_file.dart
diff --git a/example/integration_test/in_app_webview/intercept_ajax_request.dart b/flutter_inappwebview/example/integration_test/in_app_webview/intercept_ajax_request.dart
similarity index 100%
rename from example/integration_test/in_app_webview/intercept_ajax_request.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/intercept_ajax_request.dart
diff --git a/example/integration_test/in_app_webview/intercept_fetch_request.dart b/flutter_inappwebview/example/integration_test/in_app_webview/intercept_fetch_request.dart
similarity index 100%
rename from example/integration_test/in_app_webview/intercept_fetch_request.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/intercept_fetch_request.dart
diff --git a/example/integration_test/in_app_webview/is_loading.dart b/flutter_inappwebview/example/integration_test/in_app_webview/is_loading.dart
similarity index 100%
rename from example/integration_test/in_app_webview/is_loading.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/is_loading.dart
diff --git a/example/integration_test/in_app_webview/is_secure_context.dart b/flutter_inappwebview/example/integration_test/in_app_webview/is_secure_context.dart
similarity index 100%
rename from example/integration_test/in_app_webview/is_secure_context.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/is_secure_context.dart
diff --git a/example/integration_test/in_app_webview/javascript_code_evaluation.dart b/flutter_inappwebview/example/integration_test/in_app_webview/javascript_code_evaluation.dart
similarity index 100%
rename from example/integration_test/in_app_webview/javascript_code_evaluation.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/javascript_code_evaluation.dart
diff --git a/example/integration_test/in_app_webview/javascript_dialogs.dart b/flutter_inappwebview/example/integration_test/in_app_webview/javascript_dialogs.dart
similarity index 100%
rename from example/integration_test/in_app_webview/javascript_dialogs.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/javascript_dialogs.dart
diff --git a/example/integration_test/in_app_webview/javascript_handler.dart b/flutter_inappwebview/example/integration_test/in_app_webview/javascript_handler.dart
similarity index 100%
rename from example/integration_test/in_app_webview/javascript_handler.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/javascript_handler.dart
diff --git a/example/integration_test/in_app_webview/keep_alive.dart b/flutter_inappwebview/example/integration_test/in_app_webview/keep_alive.dart
similarity index 100%
rename from example/integration_test/in_app_webview/keep_alive.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/keep_alive.dart
diff --git a/example/integration_test/in_app_webview/load_data.dart b/flutter_inappwebview/example/integration_test/in_app_webview/load_data.dart
similarity index 100%
rename from example/integration_test/in_app_webview/load_data.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/load_data.dart
diff --git a/example/integration_test/in_app_webview/load_file.dart b/flutter_inappwebview/example/integration_test/in_app_webview/load_file.dart
similarity index 100%
rename from example/integration_test/in_app_webview/load_file.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/load_file.dart
diff --git a/example/integration_test/in_app_webview/load_file_url.dart b/flutter_inappwebview/example/integration_test/in_app_webview/load_file_url.dart
similarity index 100%
rename from example/integration_test/in_app_webview/load_file_url.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/load_file_url.dart
diff --git a/example/integration_test/in_app_webview/load_url.dart b/flutter_inappwebview/example/integration_test/in_app_webview/load_url.dart
similarity index 100%
rename from example/integration_test/in_app_webview/load_url.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/load_url.dart
diff --git a/example/integration_test/in_app_webview/main.dart b/flutter_inappwebview/example/integration_test/in_app_webview/main.dart
similarity index 100%
rename from example/integration_test/in_app_webview/main.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/main.dart
diff --git a/example/integration_test/in_app_webview/on_console_message.dart b/flutter_inappwebview/example/integration_test/in_app_webview/on_console_message.dart
similarity index 100%
rename from example/integration_test/in_app_webview/on_console_message.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/on_console_message.dart
diff --git a/example/integration_test/in_app_webview/on_content_size_changed.dart b/flutter_inappwebview/example/integration_test/in_app_webview/on_content_size_changed.dart
similarity index 100%
rename from example/integration_test/in_app_webview/on_content_size_changed.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/on_content_size_changed.dart
diff --git a/example/integration_test/in_app_webview/on_download_start_request.dart b/flutter_inappwebview/example/integration_test/in_app_webview/on_download_start_request.dart
similarity index 100%
rename from example/integration_test/in_app_webview/on_download_start_request.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/on_download_start_request.dart
diff --git a/example/integration_test/in_app_webview/on_js_before_unload.dart b/flutter_inappwebview/example/integration_test/in_app_webview/on_js_before_unload.dart
similarity index 100%
rename from example/integration_test/in_app_webview/on_js_before_unload.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/on_js_before_unload.dart
diff --git a/example/integration_test/in_app_webview/on_load_resource.dart b/flutter_inappwebview/example/integration_test/in_app_webview/on_load_resource.dart
similarity index 100%
rename from example/integration_test/in_app_webview/on_load_resource.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/on_load_resource.dart
diff --git a/example/integration_test/in_app_webview/on_load_resource_with_custom_scheme.dart b/flutter_inappwebview/example/integration_test/in_app_webview/on_load_resource_with_custom_scheme.dart
similarity index 100%
rename from example/integration_test/in_app_webview/on_load_resource_with_custom_scheme.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/on_load_resource_with_custom_scheme.dart
diff --git a/example/integration_test/in_app_webview/on_navigation_response.dart b/flutter_inappwebview/example/integration_test/in_app_webview/on_navigation_response.dart
similarity index 100%
rename from example/integration_test/in_app_webview/on_navigation_response.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/on_navigation_response.dart
diff --git a/example/integration_test/in_app_webview/on_page_commit_visible.dart b/flutter_inappwebview/example/integration_test/in_app_webview/on_page_commit_visible.dart
similarity index 100%
rename from example/integration_test/in_app_webview/on_page_commit_visible.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/on_page_commit_visible.dart
diff --git a/example/integration_test/in_app_webview/on_permission_request.dart b/flutter_inappwebview/example/integration_test/in_app_webview/on_permission_request.dart
similarity index 100%
rename from example/integration_test/in_app_webview/on_permission_request.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/on_permission_request.dart
diff --git a/example/integration_test/in_app_webview/on_print.dart b/flutter_inappwebview/example/integration_test/in_app_webview/on_print.dart
similarity index 100%
rename from example/integration_test/in_app_webview/on_print.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/on_print.dart
diff --git a/example/integration_test/in_app_webview/on_progress_changed.dart b/flutter_inappwebview/example/integration_test/in_app_webview/on_progress_changed.dart
similarity index 100%
rename from example/integration_test/in_app_webview/on_progress_changed.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/on_progress_changed.dart
diff --git a/example/integration_test/in_app_webview/on_received_error.dart b/flutter_inappwebview/example/integration_test/in_app_webview/on_received_error.dart
similarity index 100%
rename from example/integration_test/in_app_webview/on_received_error.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/on_received_error.dart
diff --git a/example/integration_test/in_app_webview/on_received_http_error.dart b/flutter_inappwebview/example/integration_test/in_app_webview/on_received_http_error.dart
similarity index 100%
rename from example/integration_test/in_app_webview/on_received_http_error.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/on_received_http_error.dart
diff --git a/example/integration_test/in_app_webview/on_received_icon.dart b/flutter_inappwebview/example/integration_test/in_app_webview/on_received_icon.dart
similarity index 100%
rename from example/integration_test/in_app_webview/on_received_icon.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/on_received_icon.dart
diff --git a/example/integration_test/in_app_webview/on_received_touch_icon_url.dart b/flutter_inappwebview/example/integration_test/in_app_webview/on_received_touch_icon_url.dart
similarity index 100%
rename from example/integration_test/in_app_webview/on_received_touch_icon_url.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/on_received_touch_icon_url.dart
diff --git a/example/integration_test/in_app_webview/on_scroll_changed.dart b/flutter_inappwebview/example/integration_test/in_app_webview/on_scroll_changed.dart
similarity index 100%
rename from example/integration_test/in_app_webview/on_scroll_changed.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/on_scroll_changed.dart
diff --git a/example/integration_test/in_app_webview/on_title_changed.dart b/flutter_inappwebview/example/integration_test/in_app_webview/on_title_changed.dart
similarity index 100%
rename from example/integration_test/in_app_webview/on_title_changed.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/on_title_changed.dart
diff --git a/example/integration_test/in_app_webview/on_update_visited_history.dart b/flutter_inappwebview/example/integration_test/in_app_webview/on_update_visited_history.dart
similarity index 100%
rename from example/integration_test/in_app_webview/on_update_visited_history.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/on_update_visited_history.dart
diff --git a/example/integration_test/in_app_webview/on_window_blur.dart b/flutter_inappwebview/example/integration_test/in_app_webview/on_window_blur.dart
similarity index 100%
rename from example/integration_test/in_app_webview/on_window_blur.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/on_window_blur.dart
diff --git a/example/integration_test/in_app_webview/on_window_focus.dart b/flutter_inappwebview/example/integration_test/in_app_webview/on_window_focus.dart
similarity index 100%
rename from example/integration_test/in_app_webview/on_window_focus.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/on_window_focus.dart
diff --git a/example/integration_test/in_app_webview/page_down_up.dart b/flutter_inappwebview/example/integration_test/in_app_webview/page_down_up.dart
similarity index 100%
rename from example/integration_test/in_app_webview/page_down_up.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/page_down_up.dart
diff --git a/example/integration_test/in_app_webview/pause_resume.dart b/flutter_inappwebview/example/integration_test/in_app_webview/pause_resume.dart
similarity index 100%
rename from example/integration_test/in_app_webview/pause_resume.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/pause_resume.dart
diff --git a/example/integration_test/in_app_webview/pause_resume_timers.dart b/flutter_inappwebview/example/integration_test/in_app_webview/pause_resume_timers.dart
similarity index 100%
rename from example/integration_test/in_app_webview/pause_resume_timers.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/pause_resume_timers.dart
diff --git a/example/integration_test/in_app_webview/post_requests.dart b/flutter_inappwebview/example/integration_test/in_app_webview/post_requests.dart
similarity index 100%
rename from example/integration_test/in_app_webview/post_requests.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/post_requests.dart
diff --git a/example/integration_test/in_app_webview/print_current_page.dart b/flutter_inappwebview/example/integration_test/in_app_webview/print_current_page.dart
similarity index 100%
rename from example/integration_test/in_app_webview/print_current_page.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/print_current_page.dart
diff --git a/example/integration_test/in_app_webview/programmatic_scroll.dart b/flutter_inappwebview/example/integration_test/in_app_webview/programmatic_scroll.dart
similarity index 100%
rename from example/integration_test/in_app_webview/programmatic_scroll.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/programmatic_scroll.dart
diff --git a/example/integration_test/in_app_webview/programmatic_zoom_scale.dart b/flutter_inappwebview/example/integration_test/in_app_webview/programmatic_zoom_scale.dart
similarity index 100%
rename from example/integration_test/in_app_webview/programmatic_zoom_scale.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/programmatic_zoom_scale.dart
diff --git a/example/integration_test/in_app_webview/pull_to_refresh.dart b/flutter_inappwebview/example/integration_test/in_app_webview/pull_to_refresh.dart
similarity index 100%
rename from example/integration_test/in_app_webview/pull_to_refresh.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/pull_to_refresh.dart
diff --git a/example/integration_test/in_app_webview/reload.dart b/flutter_inappwebview/example/integration_test/in_app_webview/reload.dart
similarity index 100%
rename from example/integration_test/in_app_webview/reload.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/reload.dart
diff --git a/example/integration_test/in_app_webview/request_focus_node_href.dart b/flutter_inappwebview/example/integration_test/in_app_webview/request_focus_node_href.dart
similarity index 100%
rename from example/integration_test/in_app_webview/request_focus_node_href.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/request_focus_node_href.dart
diff --git a/example/integration_test/in_app_webview/request_image_ref.dart b/flutter_inappwebview/example/integration_test/in_app_webview/request_image_ref.dart
similarity index 100%
rename from example/integration_test/in_app_webview/request_image_ref.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/request_image_ref.dart
diff --git a/example/integration_test/in_app_webview/resize_webview.dart b/flutter_inappwebview/example/integration_test/in_app_webview/resize_webview.dart
similarity index 100%
rename from example/integration_test/in_app_webview/resize_webview.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/resize_webview.dart
diff --git a/example/integration_test/in_app_webview/safe_browsing.dart b/flutter_inappwebview/example/integration_test/in_app_webview/safe_browsing.dart
similarity index 100%
rename from example/integration_test/in_app_webview/safe_browsing.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/safe_browsing.dart
diff --git a/example/integration_test/in_app_webview/set_custom_useragent.dart b/flutter_inappwebview/example/integration_test/in_app_webview/set_custom_useragent.dart
similarity index 100%
rename from example/integration_test/in_app_webview/set_custom_useragent.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/set_custom_useragent.dart
diff --git a/example/integration_test/in_app_webview/set_get_settings.dart b/flutter_inappwebview/example/integration_test/in_app_webview/set_get_settings.dart
similarity index 100%
rename from example/integration_test/in_app_webview/set_get_settings.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/set_get_settings.dart
diff --git a/example/integration_test/in_app_webview/set_web_contents_debugging_enabled.dart b/flutter_inappwebview/example/integration_test/in_app_webview/set_web_contents_debugging_enabled.dart
similarity index 100%
rename from example/integration_test/in_app_webview/set_web_contents_debugging_enabled.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/set_web_contents_debugging_enabled.dart
diff --git a/example/integration_test/in_app_webview/should_intercept_request.dart b/flutter_inappwebview/example/integration_test/in_app_webview/should_intercept_request.dart
similarity index 100%
rename from example/integration_test/in_app_webview/should_intercept_request.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/should_intercept_request.dart
diff --git a/example/integration_test/in_app_webview/should_override_url_loading.dart b/flutter_inappwebview/example/integration_test/in_app_webview/should_override_url_loading.dart
similarity index 100%
rename from example/integration_test/in_app_webview/should_override_url_loading.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/should_override_url_loading.dart
diff --git a/example/integration_test/in_app_webview/ssl_request.dart b/flutter_inappwebview/example/integration_test/in_app_webview/ssl_request.dart
similarity index 100%
rename from example/integration_test/in_app_webview/ssl_request.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/ssl_request.dart
diff --git a/example/integration_test/in_app_webview/stop_loading.dart b/flutter_inappwebview/example/integration_test/in_app_webview/stop_loading.dart
similarity index 100%
rename from example/integration_test/in_app_webview/stop_loading.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/stop_loading.dart
diff --git a/example/integration_test/in_app_webview/t_rex_runner_game.dart b/flutter_inappwebview/example/integration_test/in_app_webview/t_rex_runner_game.dart
similarity index 100%
rename from example/integration_test/in_app_webview/t_rex_runner_game.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/t_rex_runner_game.dart
diff --git a/example/integration_test/in_app_webview/take_screenshot.dart b/flutter_inappwebview/example/integration_test/in_app_webview/take_screenshot.dart
similarity index 100%
rename from example/integration_test/in_app_webview/take_screenshot.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/take_screenshot.dart
diff --git a/example/integration_test/in_app_webview/user_scripts.dart b/flutter_inappwebview/example/integration_test/in_app_webview/user_scripts.dart
similarity index 100%
rename from example/integration_test/in_app_webview/user_scripts.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/user_scripts.dart
diff --git a/example/integration_test/in_app_webview/video_playback_policy.dart b/flutter_inappwebview/example/integration_test/in_app_webview/video_playback_policy.dart
similarity index 100%
rename from example/integration_test/in_app_webview/video_playback_policy.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/video_playback_policy.dart
diff --git a/example/integration_test/in_app_webview/web_archive.dart b/flutter_inappwebview/example/integration_test/in_app_webview/web_archive.dart
similarity index 100%
rename from example/integration_test/in_app_webview/web_archive.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/web_archive.dart
diff --git a/example/integration_test/in_app_webview/web_history.dart b/flutter_inappwebview/example/integration_test/in_app_webview/web_history.dart
similarity index 100%
rename from example/integration_test/in_app_webview/web_history.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/web_history.dart
diff --git a/example/integration_test/in_app_webview/web_message.dart b/flutter_inappwebview/example/integration_test/in_app_webview/web_message.dart
similarity index 100%
rename from example/integration_test/in_app_webview/web_message.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/web_message.dart
diff --git a/example/integration_test/in_app_webview/webview_asset_loader.dart b/flutter_inappwebview/example/integration_test/in_app_webview/webview_asset_loader.dart
similarity index 100%
rename from example/integration_test/in_app_webview/webview_asset_loader.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/webview_asset_loader.dart
diff --git a/example/integration_test/in_app_webview/webview_windows.dart b/flutter_inappwebview/example/integration_test/in_app_webview/webview_windows.dart
similarity index 100%
rename from example/integration_test/in_app_webview/webview_windows.dart
rename to flutter_inappwebview/example/integration_test/in_app_webview/webview_windows.dart
diff --git a/example/integration_test/process_global_config/apply.dart b/flutter_inappwebview/example/integration_test/process_global_config/apply.dart
similarity index 100%
rename from example/integration_test/process_global_config/apply.dart
rename to flutter_inappwebview/example/integration_test/process_global_config/apply.dart
diff --git a/example/integration_test/process_global_config/main.dart b/flutter_inappwebview/example/integration_test/process_global_config/main.dart
similarity index 100%
rename from example/integration_test/process_global_config/main.dart
rename to flutter_inappwebview/example/integration_test/process_global_config/main.dart
diff --git a/example/integration_test/proxy_controller/clear_and_set_proxy_override.dart b/flutter_inappwebview/example/integration_test/proxy_controller/clear_and_set_proxy_override.dart
similarity index 100%
rename from example/integration_test/proxy_controller/clear_and_set_proxy_override.dart
rename to flutter_inappwebview/example/integration_test/proxy_controller/clear_and_set_proxy_override.dart
diff --git a/example/integration_test/proxy_controller/main.dart b/flutter_inappwebview/example/integration_test/proxy_controller/main.dart
similarity index 100%
rename from example/integration_test/proxy_controller/main.dart
rename to flutter_inappwebview/example/integration_test/proxy_controller/main.dart
diff --git a/example/integration_test/service_worker_controller/main.dart b/flutter_inappwebview/example/integration_test/service_worker_controller/main.dart
similarity index 100%
rename from example/integration_test/service_worker_controller/main.dart
rename to flutter_inappwebview/example/integration_test/service_worker_controller/main.dart
diff --git a/example/integration_test/service_worker_controller/set_service_worker_client.dart b/flutter_inappwebview/example/integration_test/service_worker_controller/set_service_worker_client.dart
similarity index 100%
rename from example/integration_test/service_worker_controller/set_service_worker_client.dart
rename to flutter_inappwebview/example/integration_test/service_worker_controller/set_service_worker_client.dart
diff --git a/example/integration_test/service_worker_controller/should_intercept_request.dart b/flutter_inappwebview/example/integration_test/service_worker_controller/should_intercept_request.dart
similarity index 100%
rename from example/integration_test/service_worker_controller/should_intercept_request.dart
rename to flutter_inappwebview/example/integration_test/service_worker_controller/should_intercept_request.dart
diff --git a/example/integration_test/tracing_controller/main.dart b/flutter_inappwebview/example/integration_test/tracing_controller/main.dart
similarity index 100%
rename from example/integration_test/tracing_controller/main.dart
rename to flutter_inappwebview/example/integration_test/tracing_controller/main.dart
diff --git a/example/integration_test/tracing_controller/start_and_stop.dart b/flutter_inappwebview/example/integration_test/tracing_controller/start_and_stop.dart
similarity index 100%
rename from example/integration_test/tracing_controller/start_and_stop.dart
rename to flutter_inappwebview/example/integration_test/tracing_controller/start_and_stop.dart
diff --git a/example/integration_test/util.dart b/flutter_inappwebview/example/integration_test/util.dart
similarity index 100%
rename from example/integration_test/util.dart
rename to flutter_inappwebview/example/integration_test/util.dart
diff --git a/example/integration_test/webview_flutter_test.dart b/flutter_inappwebview/example/integration_test/webview_flutter_test.dart
similarity index 100%
rename from example/integration_test/webview_flutter_test.dart
rename to flutter_inappwebview/example/integration_test/webview_flutter_test.dart
diff --git a/example/ios/.gitignore b/flutter_inappwebview/example/ios/.gitignore
similarity index 100%
rename from example/ios/.gitignore
rename to flutter_inappwebview/example/ios/.gitignore
diff --git a/example/ios/Flutter/.last_build_id b/flutter_inappwebview/example/ios/Flutter/.last_build_id
similarity index 100%
rename from example/ios/Flutter/.last_build_id
rename to flutter_inappwebview/example/ios/Flutter/.last_build_id
diff --git a/example/ios/Flutter/AppFrameworkInfo.plist b/flutter_inappwebview/example/ios/Flutter/AppFrameworkInfo.plist
similarity index 100%
rename from example/ios/Flutter/AppFrameworkInfo.plist
rename to flutter_inappwebview/example/ios/Flutter/AppFrameworkInfo.plist
diff --git a/example/ios/Flutter/Debug.xcconfig b/flutter_inappwebview/example/ios/Flutter/Debug.xcconfig
similarity index 100%
rename from example/ios/Flutter/Debug.xcconfig
rename to flutter_inappwebview/example/ios/Flutter/Debug.xcconfig
diff --git a/example/ios/Flutter/Release.xcconfig b/flutter_inappwebview/example/ios/Flutter/Release.xcconfig
similarity index 100%
rename from example/ios/Flutter/Release.xcconfig
rename to flutter_inappwebview/example/ios/Flutter/Release.xcconfig
diff --git a/example/ios/Podfile b/flutter_inappwebview/example/ios/Podfile
similarity index 100%
rename from example/ios/Podfile
rename to flutter_inappwebview/example/ios/Podfile
diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/flutter_inappwebview/example/ios/Runner.xcodeproj/project.pbxproj
similarity index 100%
rename from example/ios/Runner.xcodeproj/project.pbxproj
rename to flutter_inappwebview/example/ios/Runner.xcodeproj/project.pbxproj
diff --git a/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/flutter_inappwebview/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
similarity index 100%
rename from example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
rename to flutter_inappwebview/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
diff --git a/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/flutter_inappwebview/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
similarity index 100%
rename from example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
rename to flutter_inappwebview/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
diff --git a/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/flutter_inappwebview/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
similarity index 100%
rename from example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
rename to flutter_inappwebview/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
diff --git a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/flutter_inappwebview/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
similarity index 100%
rename from example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
rename to flutter_inappwebview/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
diff --git a/example/ios/Runner.xcworkspace/contents.xcworkspacedata b/flutter_inappwebview/example/ios/Runner.xcworkspace/contents.xcworkspacedata
similarity index 100%
rename from example/ios/Runner.xcworkspace/contents.xcworkspacedata
rename to flutter_inappwebview/example/ios/Runner.xcworkspace/contents.xcworkspacedata
diff --git a/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/flutter_inappwebview/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
similarity index 100%
rename from example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
rename to flutter_inappwebview/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
diff --git a/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/flutter_inappwebview/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
similarity index 100%
rename from example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
rename to flutter_inappwebview/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
diff --git a/example/ios/Runner/AppDelegate.swift b/flutter_inappwebview/example/ios/Runner/AppDelegate.swift
similarity index 100%
rename from example/ios/Runner/AppDelegate.swift
rename to flutter_inappwebview/example/ios/Runner/AppDelegate.swift
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
similarity index 100%
rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
rename to flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
similarity index 100%
rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
rename to flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
similarity index 100%
rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
rename to flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
similarity index 100%
rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
rename to flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
similarity index 100%
rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
rename to flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
similarity index 100%
rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
rename to flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
similarity index 100%
rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
rename to flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
similarity index 100%
rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
rename to flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
similarity index 100%
rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
rename to flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
similarity index 100%
rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
rename to flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
similarity index 100%
rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
rename to flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
similarity index 100%
rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
rename to flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
similarity index 100%
rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
rename to flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
similarity index 100%
rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
rename to flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
similarity index 100%
rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
rename to flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
similarity index 100%
rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
rename to flutter_inappwebview/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
diff --git a/example/ios/Runner/Assets.xcassets/Contents.json b/flutter_inappwebview/example/ios/Runner/Assets.xcassets/Contents.json
similarity index 100%
rename from example/ios/Runner/Assets.xcassets/Contents.json
rename to flutter_inappwebview/example/ios/Runner/Assets.xcassets/Contents.json
diff --git a/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/flutter_inappwebview/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
similarity index 100%
rename from example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
rename to flutter_inappwebview/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
diff --git a/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/flutter_inappwebview/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
similarity index 100%
rename from example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
rename to flutter_inappwebview/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
diff --git a/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/flutter_inappwebview/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
similarity index 100%
rename from example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
rename to flutter_inappwebview/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
diff --git a/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/flutter_inappwebview/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
similarity index 100%
rename from example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
rename to flutter_inappwebview/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
diff --git a/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/flutter_inappwebview/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
similarity index 100%
rename from example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
rename to flutter_inappwebview/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
diff --git a/example/ios/Runner/Base.lproj/LaunchScreen.storyboard b/flutter_inappwebview/example/ios/Runner/Base.lproj/LaunchScreen.storyboard
similarity index 100%
rename from example/ios/Runner/Base.lproj/LaunchScreen.storyboard
rename to flutter_inappwebview/example/ios/Runner/Base.lproj/LaunchScreen.storyboard
diff --git a/example/ios/Runner/Base.lproj/Main.storyboard b/flutter_inappwebview/example/ios/Runner/Base.lproj/Main.storyboard
similarity index 100%
rename from example/ios/Runner/Base.lproj/Main.storyboard
rename to flutter_inappwebview/example/ios/Runner/Base.lproj/Main.storyboard
diff --git a/example/ios/Runner/Info.plist b/flutter_inappwebview/example/ios/Runner/Info.plist
similarity index 100%
rename from example/ios/Runner/Info.plist
rename to flutter_inappwebview/example/ios/Runner/Info.plist
diff --git a/example/ios/Runner/Runner-Bridging-Header.h b/flutter_inappwebview/example/ios/Runner/Runner-Bridging-Header.h
similarity index 100%
rename from example/ios/Runner/Runner-Bridging-Header.h
rename to flutter_inappwebview/example/ios/Runner/Runner-Bridging-Header.h
diff --git a/example/ios/test/ActionViewController.swift b/flutter_inappwebview/example/ios/test/ActionViewController.swift
similarity index 100%
rename from example/ios/test/ActionViewController.swift
rename to flutter_inappwebview/example/ios/test/ActionViewController.swift
diff --git a/example/ios/test/Base.lproj/MainInterface.storyboard b/flutter_inappwebview/example/ios/test/Base.lproj/MainInterface.storyboard
similarity index 100%
rename from example/ios/test/Base.lproj/MainInterface.storyboard
rename to flutter_inappwebview/example/ios/test/Base.lproj/MainInterface.storyboard
diff --git a/example/ios/test/Info.plist b/flutter_inappwebview/example/ios/test/Info.plist
similarity index 100%
rename from example/ios/test/Info.plist
rename to flutter_inappwebview/example/ios/test/Info.plist
diff --git a/example/ios/test/Media.xcassets/Contents.json b/flutter_inappwebview/example/ios/test/Media.xcassets/Contents.json
similarity index 100%
rename from example/ios/test/Media.xcassets/Contents.json
rename to flutter_inappwebview/example/ios/test/Media.xcassets/Contents.json
diff --git a/example/ios/test/Media.xcassets/TouchBarBezel.colorset/Contents.json b/flutter_inappwebview/example/ios/test/Media.xcassets/TouchBarBezel.colorset/Contents.json
similarity index 100%
rename from example/ios/test/Media.xcassets/TouchBarBezel.colorset/Contents.json
rename to flutter_inappwebview/example/ios/test/Media.xcassets/TouchBarBezel.colorset/Contents.json
diff --git a/example/lib/chrome_safari_browser_example.screen.dart b/flutter_inappwebview/example/lib/chrome_safari_browser_example.screen.dart
similarity index 87%
rename from example/lib/chrome_safari_browser_example.screen.dart
rename to flutter_inappwebview/example/lib/chrome_safari_browser_example.screen.dart
index c8066996..2046f7db 100755
--- a/example/lib/chrome_safari_browser_example.screen.dart
+++ b/flutter_inappwebview/example/lib/chrome_safari_browser_example.screen.dart
@@ -1,3 +1,4 @@
+import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
@@ -8,7 +9,6 @@ class MyChromeSafariBrowser extends ChromeSafariBrowser {
@override
void onOpened() async {
print("ChromeSafari browser opened");
- print(await isEngagementSignalsApiAvailable());
}
@override
@@ -35,15 +35,17 @@ class _ChromeSafariBrowserExampleScreenState
@override
void initState() {
rootBundle.load('assets/images/flutter-logo.png').then((actionButtonIcon) {
- widget.browser.setActionButton(ChromeSafariBrowserActionButton(
- id: 1,
- description: 'Action Button description',
- icon: actionButtonIcon.buffer.asUint8List(),
- onClick: (url, title) {
- print('Action Button 1 clicked!');
- print(url);
- print(title);
- }));
+ if (defaultTargetPlatform == TargetPlatform.android) {
+ widget.browser.setActionButton(ChromeSafariBrowserActionButton(
+ id: 1,
+ description: 'Action Button description',
+ icon: actionButtonIcon.buffer.asUint8List(),
+ onClick: (url, title) {
+ print('Action Button 1 clicked!');
+ print(url);
+ print(title);
+ }));
+ }
});
widget.browser.addMenuItem(ChromeSafariBrowserMenuItem(
diff --git a/example/lib/headless_in_app_webview.screen.dart b/flutter_inappwebview/example/lib/headless_in_app_webview.screen.dart
similarity index 100%
rename from example/lib/headless_in_app_webview.screen.dart
rename to flutter_inappwebview/example/lib/headless_in_app_webview.screen.dart
diff --git a/example/lib/in_app_browser_example.screen.dart b/flutter_inappwebview/example/lib/in_app_browser_example.screen.dart
similarity index 100%
rename from example/lib/in_app_browser_example.screen.dart
rename to flutter_inappwebview/example/lib/in_app_browser_example.screen.dart
diff --git a/example/lib/in_app_webiew_example.screen.dart b/flutter_inappwebview/example/lib/in_app_webiew_example.screen.dart
similarity index 100%
rename from example/lib/in_app_webiew_example.screen.dart
rename to flutter_inappwebview/example/lib/in_app_webiew_example.screen.dart
diff --git a/example/lib/main.dart b/flutter_inappwebview/example/lib/main.dart
similarity index 100%
rename from example/lib/main.dart
rename to flutter_inappwebview/example/lib/main.dart
diff --git a/example/lib/web_authentication_session_example.screen.dart b/flutter_inappwebview/example/lib/web_authentication_session_example.screen.dart
similarity index 100%
rename from example/lib/web_authentication_session_example.screen.dart
rename to flutter_inappwebview/example/lib/web_authentication_session_example.screen.dart
diff --git a/example/macos/.gitignore b/flutter_inappwebview/example/macos/.gitignore
similarity index 100%
rename from example/macos/.gitignore
rename to flutter_inappwebview/example/macos/.gitignore
diff --git a/example/macos/Flutter/Flutter-Debug.xcconfig b/flutter_inappwebview/example/macos/Flutter/Flutter-Debug.xcconfig
similarity index 100%
rename from example/macos/Flutter/Flutter-Debug.xcconfig
rename to flutter_inappwebview/example/macos/Flutter/Flutter-Debug.xcconfig
diff --git a/example/macos/Flutter/Flutter-Release.xcconfig b/flutter_inappwebview/example/macos/Flutter/Flutter-Release.xcconfig
similarity index 100%
rename from example/macos/Flutter/Flutter-Release.xcconfig
rename to flutter_inappwebview/example/macos/Flutter/Flutter-Release.xcconfig
diff --git a/example/macos/Flutter/GeneratedPluginRegistrant.swift b/flutter_inappwebview/example/macos/Flutter/GeneratedPluginRegistrant.swift
similarity index 100%
rename from example/macos/Flutter/GeneratedPluginRegistrant.swift
rename to flutter_inappwebview/example/macos/Flutter/GeneratedPluginRegistrant.swift
diff --git a/example/macos/Podfile b/flutter_inappwebview/example/macos/Podfile
similarity index 100%
rename from example/macos/Podfile
rename to flutter_inappwebview/example/macos/Podfile
diff --git a/example/macos/Runner.xcodeproj/project.pbxproj b/flutter_inappwebview/example/macos/Runner.xcodeproj/project.pbxproj
similarity index 100%
rename from example/macos/Runner.xcodeproj/project.pbxproj
rename to flutter_inappwebview/example/macos/Runner.xcodeproj/project.pbxproj
diff --git a/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/flutter_inappwebview/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
similarity index 100%
rename from example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
rename to flutter_inappwebview/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
diff --git a/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/flutter_inappwebview/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
similarity index 100%
rename from example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
rename to flutter_inappwebview/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
diff --git a/example/macos/Runner.xcworkspace/contents.xcworkspacedata b/flutter_inappwebview/example/macos/Runner.xcworkspace/contents.xcworkspacedata
similarity index 100%
rename from example/macos/Runner.xcworkspace/contents.xcworkspacedata
rename to flutter_inappwebview/example/macos/Runner.xcworkspace/contents.xcworkspacedata
diff --git a/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/flutter_inappwebview/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
similarity index 100%
rename from example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
rename to flutter_inappwebview/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
diff --git a/example/macos/Runner/AppDelegate.swift b/flutter_inappwebview/example/macos/Runner/AppDelegate.swift
similarity index 100%
rename from example/macos/Runner/AppDelegate.swift
rename to flutter_inappwebview/example/macos/Runner/AppDelegate.swift
diff --git a/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/flutter_inappwebview/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
similarity index 100%
rename from example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
rename to flutter_inappwebview/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
diff --git a/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png b/flutter_inappwebview/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png
similarity index 100%
rename from example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png
rename to flutter_inappwebview/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png
diff --git a/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png b/flutter_inappwebview/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png
similarity index 100%
rename from example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png
rename to flutter_inappwebview/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png
diff --git a/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png b/flutter_inappwebview/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png
similarity index 100%
rename from example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png
rename to flutter_inappwebview/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png
diff --git a/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png b/flutter_inappwebview/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png
similarity index 100%
rename from example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png
rename to flutter_inappwebview/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png
diff --git a/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png b/flutter_inappwebview/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png
similarity index 100%
rename from example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png
rename to flutter_inappwebview/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png
diff --git a/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png b/flutter_inappwebview/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png
similarity index 100%
rename from example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png
rename to flutter_inappwebview/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png
diff --git a/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png b/flutter_inappwebview/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png
similarity index 100%
rename from example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png
rename to flutter_inappwebview/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png
diff --git a/example/macos/Runner/Base.lproj/MainMenu.xib b/flutter_inappwebview/example/macos/Runner/Base.lproj/MainMenu.xib
similarity index 100%
rename from example/macos/Runner/Base.lproj/MainMenu.xib
rename to flutter_inappwebview/example/macos/Runner/Base.lproj/MainMenu.xib
diff --git a/example/macos/Runner/Configs/AppInfo.xcconfig b/flutter_inappwebview/example/macos/Runner/Configs/AppInfo.xcconfig
similarity index 100%
rename from example/macos/Runner/Configs/AppInfo.xcconfig
rename to flutter_inappwebview/example/macos/Runner/Configs/AppInfo.xcconfig
diff --git a/example/macos/Runner/Configs/Debug.xcconfig b/flutter_inappwebview/example/macos/Runner/Configs/Debug.xcconfig
similarity index 100%
rename from example/macos/Runner/Configs/Debug.xcconfig
rename to flutter_inappwebview/example/macos/Runner/Configs/Debug.xcconfig
diff --git a/example/macos/Runner/Configs/Release.xcconfig b/flutter_inappwebview/example/macos/Runner/Configs/Release.xcconfig
similarity index 100%
rename from example/macos/Runner/Configs/Release.xcconfig
rename to flutter_inappwebview/example/macos/Runner/Configs/Release.xcconfig
diff --git a/example/macos/Runner/Configs/Warnings.xcconfig b/flutter_inappwebview/example/macos/Runner/Configs/Warnings.xcconfig
similarity index 100%
rename from example/macos/Runner/Configs/Warnings.xcconfig
rename to flutter_inappwebview/example/macos/Runner/Configs/Warnings.xcconfig
diff --git a/example/macos/Runner/DebugProfile.entitlements b/flutter_inappwebview/example/macos/Runner/DebugProfile.entitlements
similarity index 100%
rename from example/macos/Runner/DebugProfile.entitlements
rename to flutter_inappwebview/example/macos/Runner/DebugProfile.entitlements
diff --git a/example/macos/Runner/Info.plist b/flutter_inappwebview/example/macos/Runner/Info.plist
similarity index 100%
rename from example/macos/Runner/Info.plist
rename to flutter_inappwebview/example/macos/Runner/Info.plist
diff --git a/example/macos/Runner/MainFlutterWindow.swift b/flutter_inappwebview/example/macos/Runner/MainFlutterWindow.swift
similarity index 100%
rename from example/macos/Runner/MainFlutterWindow.swift
rename to flutter_inappwebview/example/macos/Runner/MainFlutterWindow.swift
diff --git a/example/macos/Runner/Release.entitlements b/flutter_inappwebview/example/macos/Runner/Release.entitlements
similarity index 100%
rename from example/macos/Runner/Release.entitlements
rename to flutter_inappwebview/example/macos/Runner/Release.entitlements
diff --git a/example/pubspec.yaml b/flutter_inappwebview/example/pubspec.yaml
similarity index 93%
rename from example/pubspec.yaml
rename to flutter_inappwebview/example/pubspec.yaml
index 46df9552..884f3667 100755
--- a/example/pubspec.yaml
+++ b/flutter_inappwebview/example/pubspec.yaml
@@ -33,15 +33,15 @@ dependencies:
dependency_overrides:
flutter_inappwebview_platform_interface:
- path: ../flutter_inappwebview_platform_interface
+ path: ../../flutter_inappwebview_platform_interface
flutter_inappwebview_android:
- path: ../flutter_inappwebview_android
+ path: ../../flutter_inappwebview_android
flutter_inappwebview_ios:
- path: ../flutter_inappwebview_ios
+ path: ../../flutter_inappwebview_ios
flutter_inappwebview_macos:
- path: ../flutter_inappwebview_macos
+ path: ../../flutter_inappwebview_macos
flutter_inappwebview_web:
- path: ../flutter_inappwebview_web
+ path: ../../flutter_inappwebview_web
dev_dependencies:
flutter_test:
diff --git a/example/test_assets/certificate.pfx b/flutter_inappwebview/example/test_assets/certificate.pfx
similarity index 100%
rename from example/test_assets/certificate.pfx
rename to flutter_inappwebview/example/test_assets/certificate.pfx
diff --git a/example/test_assets/css/blue-body.css b/flutter_inappwebview/example/test_assets/css/blue-body.css
similarity index 100%
rename from example/test_assets/css/blue-body.css
rename to flutter_inappwebview/example/test_assets/css/blue-body.css
diff --git a/example/test_assets/css/style.css b/flutter_inappwebview/example/test_assets/css/style.css
similarity index 100%
rename from example/test_assets/css/style.css
rename to flutter_inappwebview/example/test_assets/css/style.css
diff --git a/example/test_assets/favicon.ico b/flutter_inappwebview/example/test_assets/favicon.ico
similarity index 100%
rename from example/test_assets/favicon.ico
rename to flutter_inappwebview/example/test_assets/favicon.ico
diff --git a/example/test_assets/images/flutter-logo.jpg b/flutter_inappwebview/example/test_assets/images/flutter-logo.jpg
similarity index 100%
rename from example/test_assets/images/flutter-logo.jpg
rename to flutter_inappwebview/example/test_assets/images/flutter-logo.jpg
diff --git a/example/test_assets/images/flutter-logo.png b/flutter_inappwebview/example/test_assets/images/flutter-logo.png
similarity index 100%
rename from example/test_assets/images/flutter-logo.png
rename to flutter_inappwebview/example/test_assets/images/flutter-logo.png
diff --git a/example/test_assets/images/flutter-logo.svg b/flutter_inappwebview/example/test_assets/images/flutter-logo.svg
similarity index 100%
rename from example/test_assets/images/flutter-logo.svg
rename to flutter_inappwebview/example/test_assets/images/flutter-logo.svg
diff --git a/example/test_assets/in_app_webview_initial_file_test.html b/flutter_inappwebview/example/test_assets/in_app_webview_initial_file_test.html
similarity index 100%
rename from example/test_assets/in_app_webview_initial_file_test.html
rename to flutter_inappwebview/example/test_assets/in_app_webview_initial_file_test.html
diff --git a/example/test_assets/in_app_webview_javascript_handler_test.html b/flutter_inappwebview/example/test_assets/in_app_webview_javascript_handler_test.html
similarity index 100%
rename from example/test_assets/in_app_webview_javascript_handler_test.html
rename to flutter_inappwebview/example/test_assets/in_app_webview_javascript_handler_test.html
diff --git a/example/test_assets/in_app_webview_on_console_message_test.html b/flutter_inappwebview/example/test_assets/in_app_webview_on_console_message_test.html
similarity index 100%
rename from example/test_assets/in_app_webview_on_console_message_test.html
rename to flutter_inappwebview/example/test_assets/in_app_webview_on_console_message_test.html
diff --git a/example/test_assets/in_app_webview_on_create_window_test.html b/flutter_inappwebview/example/test_assets/in_app_webview_on_create_window_test.html
similarity index 100%
rename from example/test_assets/in_app_webview_on_create_window_test.html
rename to flutter_inappwebview/example/test_assets/in_app_webview_on_create_window_test.html
diff --git a/example/test_assets/in_app_webview_on_js_before_unload.html b/flutter_inappwebview/example/test_assets/in_app_webview_on_js_before_unload.html
similarity index 100%
rename from example/test_assets/in_app_webview_on_js_before_unload.html
rename to flutter_inappwebview/example/test_assets/in_app_webview_on_js_before_unload.html
diff --git a/example/test_assets/in_app_webview_on_js_dialog_test.html b/flutter_inappwebview/example/test_assets/in_app_webview_on_js_dialog_test.html
similarity index 100%
rename from example/test_assets/in_app_webview_on_js_dialog_test.html
rename to flutter_inappwebview/example/test_assets/in_app_webview_on_js_dialog_test.html
diff --git a/example/test_assets/in_app_webview_on_load_resource_custom_scheme_test.html b/flutter_inappwebview/example/test_assets/in_app_webview_on_load_resource_custom_scheme_test.html
similarity index 100%
rename from example/test_assets/in_app_webview_on_load_resource_custom_scheme_test.html
rename to flutter_inappwebview/example/test_assets/in_app_webview_on_load_resource_custom_scheme_test.html
diff --git a/example/test_assets/in_app_webview_on_load_resource_test.html b/flutter_inappwebview/example/test_assets/in_app_webview_on_load_resource_test.html
similarity index 100%
rename from example/test_assets/in_app_webview_on_load_resource_test.html
rename to flutter_inappwebview/example/test_assets/in_app_webview_on_load_resource_test.html
diff --git a/example/test_assets/in_app_webview_on_navigation_state_change_test.html b/flutter_inappwebview/example/test_assets/in_app_webview_on_navigation_state_change_test.html
similarity index 100%
rename from example/test_assets/in_app_webview_on_navigation_state_change_test.html
rename to flutter_inappwebview/example/test_assets/in_app_webview_on_navigation_state_change_test.html
diff --git a/example/test_assets/index.html b/flutter_inappwebview/example/test_assets/index.html
similarity index 100%
rename from example/test_assets/index.html
rename to flutter_inappwebview/example/test_assets/index.html
diff --git a/example/test_assets/js/jquery-3.3.1.min.js b/flutter_inappwebview/example/test_assets/js/jquery-3.3.1.min.js
similarity index 100%
rename from example/test_assets/js/jquery-3.3.1.min.js
rename to flutter_inappwebview/example/test_assets/js/jquery-3.3.1.min.js
diff --git a/example/test_assets/page-1.html b/flutter_inappwebview/example/test_assets/page-1.html
similarity index 100%
rename from example/test_assets/page-1.html
rename to flutter_inappwebview/example/test_assets/page-1.html
diff --git a/example/test_assets/page-2.html b/flutter_inappwebview/example/test_assets/page-2.html
similarity index 100%
rename from example/test_assets/page-2.html
rename to flutter_inappwebview/example/test_assets/page-2.html
diff --git a/example/test_assets/sample_audio.ogg b/flutter_inappwebview/example/test_assets/sample_audio.ogg
similarity index 100%
rename from example/test_assets/sample_audio.ogg
rename to flutter_inappwebview/example/test_assets/sample_audio.ogg
diff --git a/example/test_assets/sample_video.mp4 b/flutter_inappwebview/example/test_assets/sample_video.mp4
similarity index 100%
rename from example/test_assets/sample_video.mp4
rename to flutter_inappwebview/example/test_assets/sample_video.mp4
diff --git a/example/test_assets/website/index.html b/flutter_inappwebview/example/test_assets/website/index.html
similarity index 100%
rename from example/test_assets/website/index.html
rename to flutter_inappwebview/example/test_assets/website/index.html
diff --git a/example/test_driver/integration_test.dart b/flutter_inappwebview/example/test_driver/integration_test.dart
similarity index 100%
rename from example/test_driver/integration_test.dart
rename to flutter_inappwebview/example/test_driver/integration_test.dart
diff --git a/example/web/favicon.png b/flutter_inappwebview/example/web/favicon.png
similarity index 100%
rename from example/web/favicon.png
rename to flutter_inappwebview/example/web/favicon.png
diff --git a/example/web/heavy-page.html b/flutter_inappwebview/example/web/heavy-page.html
similarity index 100%
rename from example/web/heavy-page.html
rename to flutter_inappwebview/example/web/heavy-page.html
diff --git a/example/web/icons/Icon-192.png b/flutter_inappwebview/example/web/icons/Icon-192.png
similarity index 100%
rename from example/web/icons/Icon-192.png
rename to flutter_inappwebview/example/web/icons/Icon-192.png
diff --git a/example/web/icons/Icon-512.png b/flutter_inappwebview/example/web/icons/Icon-512.png
similarity index 100%
rename from example/web/icons/Icon-512.png
rename to flutter_inappwebview/example/web/icons/Icon-512.png
diff --git a/example/web/icons/Icon-maskable-192.png b/flutter_inappwebview/example/web/icons/Icon-maskable-192.png
similarity index 100%
rename from example/web/icons/Icon-maskable-192.png
rename to flutter_inappwebview/example/web/icons/Icon-maskable-192.png
diff --git a/example/web/icons/Icon-maskable-512.png b/flutter_inappwebview/example/web/icons/Icon-maskable-512.png
similarity index 100%
rename from example/web/icons/Icon-maskable-512.png
rename to flutter_inappwebview/example/web/icons/Icon-maskable-512.png
diff --git a/example/web/index.html b/flutter_inappwebview/example/web/index.html
similarity index 100%
rename from example/web/index.html
rename to flutter_inappwebview/example/web/index.html
diff --git a/example/web/manifest.json b/flutter_inappwebview/example/web/manifest.json
similarity index 100%
rename from example/web/manifest.json
rename to flutter_inappwebview/example/web/manifest.json
diff --git a/example/web/page-2.html b/flutter_inappwebview/example/web/page-2.html
similarity index 100%
rename from example/web/page-2.html
rename to flutter_inappwebview/example/web/page-2.html
diff --git a/example/web/page.html b/flutter_inappwebview/example/web/page.html
similarity index 100%
rename from example/web/page.html
rename to flutter_inappwebview/example/web/page.html
diff --git a/lib/assets/t_rex_runner/t-rex.css b/flutter_inappwebview/lib/assets/t_rex_runner/t-rex.css
similarity index 100%
rename from lib/assets/t_rex_runner/t-rex.css
rename to flutter_inappwebview/lib/assets/t_rex_runner/t-rex.css
diff --git a/lib/assets/t_rex_runner/t-rex.html b/flutter_inappwebview/lib/assets/t_rex_runner/t-rex.html
similarity index 100%
rename from lib/assets/t_rex_runner/t-rex.html
rename to flutter_inappwebview/lib/assets/t_rex_runner/t-rex.html
diff --git a/lib/flutter_inappwebview.dart b/flutter_inappwebview/lib/flutter_inappwebview.dart
similarity index 100%
rename from lib/flutter_inappwebview.dart
rename to flutter_inappwebview/lib/flutter_inappwebview.dart
diff --git a/lib/src/chrome_safari_browser/chrome_safari_browser.dart b/flutter_inappwebview/lib/src/chrome_safari_browser/chrome_safari_browser.dart
similarity index 100%
rename from lib/src/chrome_safari_browser/chrome_safari_browser.dart
rename to flutter_inappwebview/lib/src/chrome_safari_browser/chrome_safari_browser.dart
diff --git a/lib/src/chrome_safari_browser/main.dart b/flutter_inappwebview/lib/src/chrome_safari_browser/main.dart
similarity index 100%
rename from lib/src/chrome_safari_browser/main.dart
rename to flutter_inappwebview/lib/src/chrome_safari_browser/main.dart
diff --git a/lib/src/cookie_manager.dart b/flutter_inappwebview/lib/src/cookie_manager.dart
similarity index 100%
rename from lib/src/cookie_manager.dart
rename to flutter_inappwebview/lib/src/cookie_manager.dart
diff --git a/lib/src/find_interaction/find_interaction_controller.dart b/flutter_inappwebview/lib/src/find_interaction/find_interaction_controller.dart
similarity index 100%
rename from lib/src/find_interaction/find_interaction_controller.dart
rename to flutter_inappwebview/lib/src/find_interaction/find_interaction_controller.dart
diff --git a/lib/src/find_interaction/main.dart b/flutter_inappwebview/lib/src/find_interaction/main.dart
similarity index 100%
rename from lib/src/find_interaction/main.dart
rename to flutter_inappwebview/lib/src/find_interaction/main.dart
diff --git a/lib/src/http_auth_credentials_database.dart b/flutter_inappwebview/lib/src/http_auth_credentials_database.dart
similarity index 100%
rename from lib/src/http_auth_credentials_database.dart
rename to flutter_inappwebview/lib/src/http_auth_credentials_database.dart
diff --git a/lib/src/in_app_browser/in_app_browser.dart b/flutter_inappwebview/lib/src/in_app_browser/in_app_browser.dart
similarity index 100%
rename from lib/src/in_app_browser/in_app_browser.dart
rename to flutter_inappwebview/lib/src/in_app_browser/in_app_browser.dart
diff --git a/lib/src/in_app_browser/main.dart b/flutter_inappwebview/lib/src/in_app_browser/main.dart
similarity index 100%
rename from lib/src/in_app_browser/main.dart
rename to flutter_inappwebview/lib/src/in_app_browser/main.dart
diff --git a/lib/src/in_app_localhost_server.dart b/flutter_inappwebview/lib/src/in_app_localhost_server.dart
similarity index 100%
rename from lib/src/in_app_localhost_server.dart
rename to flutter_inappwebview/lib/src/in_app_localhost_server.dart
diff --git a/lib/src/in_app_webview/_static_channel.dart b/flutter_inappwebview/lib/src/in_app_webview/_static_channel.dart
similarity index 100%
rename from lib/src/in_app_webview/_static_channel.dart
rename to flutter_inappwebview/lib/src/in_app_webview/_static_channel.dart
diff --git a/lib/src/in_app_webview/android/in_app_webview_controller.dart b/flutter_inappwebview/lib/src/in_app_webview/android/in_app_webview_controller.dart
similarity index 100%
rename from lib/src/in_app_webview/android/in_app_webview_controller.dart
rename to flutter_inappwebview/lib/src/in_app_webview/android/in_app_webview_controller.dart
diff --git a/lib/src/in_app_webview/android/main.dart b/flutter_inappwebview/lib/src/in_app_webview/android/main.dart
similarity index 100%
rename from lib/src/in_app_webview/android/main.dart
rename to flutter_inappwebview/lib/src/in_app_webview/android/main.dart
diff --git a/lib/src/in_app_webview/apple/in_app_webview_controller.dart b/flutter_inappwebview/lib/src/in_app_webview/apple/in_app_webview_controller.dart
similarity index 100%
rename from lib/src/in_app_webview/apple/in_app_webview_controller.dart
rename to flutter_inappwebview/lib/src/in_app_webview/apple/in_app_webview_controller.dart
diff --git a/lib/src/in_app_webview/apple/main.dart b/flutter_inappwebview/lib/src/in_app_webview/apple/main.dart
similarity index 100%
rename from lib/src/in_app_webview/apple/main.dart
rename to flutter_inappwebview/lib/src/in_app_webview/apple/main.dart
diff --git a/lib/src/in_app_webview/headless_in_app_webview.dart b/flutter_inappwebview/lib/src/in_app_webview/headless_in_app_webview.dart
similarity index 100%
rename from lib/src/in_app_webview/headless_in_app_webview.dart
rename to flutter_inappwebview/lib/src/in_app_webview/headless_in_app_webview.dart
diff --git a/lib/src/in_app_webview/in_app_webview.dart b/flutter_inappwebview/lib/src/in_app_webview/in_app_webview.dart
similarity index 100%
rename from lib/src/in_app_webview/in_app_webview.dart
rename to flutter_inappwebview/lib/src/in_app_webview/in_app_webview.dart
diff --git a/lib/src/in_app_webview/in_app_webview_controller.dart b/flutter_inappwebview/lib/src/in_app_webview/in_app_webview_controller.dart
similarity index 100%
rename from lib/src/in_app_webview/in_app_webview_controller.dart
rename to flutter_inappwebview/lib/src/in_app_webview/in_app_webview_controller.dart
diff --git a/lib/src/in_app_webview/main.dart b/flutter_inappwebview/lib/src/in_app_webview/main.dart
similarity index 100%
rename from lib/src/in_app_webview/main.dart
rename to flutter_inappwebview/lib/src/in_app_webview/main.dart
diff --git a/lib/src/main.dart b/flutter_inappwebview/lib/src/main.dart
similarity index 100%
rename from lib/src/main.dart
rename to flutter_inappwebview/lib/src/main.dart
diff --git a/lib/src/print_job/main.dart b/flutter_inappwebview/lib/src/print_job/main.dart
similarity index 100%
rename from lib/src/print_job/main.dart
rename to flutter_inappwebview/lib/src/print_job/main.dart
diff --git a/lib/src/print_job/print_job_controller.dart b/flutter_inappwebview/lib/src/print_job/print_job_controller.dart
similarity index 100%
rename from lib/src/print_job/print_job_controller.dart
rename to flutter_inappwebview/lib/src/print_job/print_job_controller.dart
diff --git a/lib/src/process_global_config.dart b/flutter_inappwebview/lib/src/process_global_config.dart
similarity index 100%
rename from lib/src/process_global_config.dart
rename to flutter_inappwebview/lib/src/process_global_config.dart
diff --git a/lib/src/proxy_controller.dart b/flutter_inappwebview/lib/src/proxy_controller.dart
similarity index 100%
rename from lib/src/proxy_controller.dart
rename to flutter_inappwebview/lib/src/proxy_controller.dart
diff --git a/lib/src/pull_to_refresh/main.dart b/flutter_inappwebview/lib/src/pull_to_refresh/main.dart
similarity index 100%
rename from lib/src/pull_to_refresh/main.dart
rename to flutter_inappwebview/lib/src/pull_to_refresh/main.dart
diff --git a/lib/src/pull_to_refresh/pull_to_refresh_controller.dart b/flutter_inappwebview/lib/src/pull_to_refresh/pull_to_refresh_controller.dart
similarity index 100%
rename from lib/src/pull_to_refresh/pull_to_refresh_controller.dart
rename to flutter_inappwebview/lib/src/pull_to_refresh/pull_to_refresh_controller.dart
diff --git a/lib/src/service_worker_controller.dart b/flutter_inappwebview/lib/src/service_worker_controller.dart
similarity index 100%
rename from lib/src/service_worker_controller.dart
rename to flutter_inappwebview/lib/src/service_worker_controller.dart
diff --git a/lib/src/tracing_controller.dart b/flutter_inappwebview/lib/src/tracing_controller.dart
similarity index 100%
rename from lib/src/tracing_controller.dart
rename to flutter_inappwebview/lib/src/tracing_controller.dart
diff --git a/lib/src/web_authentication_session/main.dart b/flutter_inappwebview/lib/src/web_authentication_session/main.dart
similarity index 100%
rename from lib/src/web_authentication_session/main.dart
rename to flutter_inappwebview/lib/src/web_authentication_session/main.dart
diff --git a/lib/src/web_authentication_session/web_authenticate_session.dart b/flutter_inappwebview/lib/src/web_authentication_session/web_authenticate_session.dart
similarity index 100%
rename from lib/src/web_authentication_session/web_authenticate_session.dart
rename to flutter_inappwebview/lib/src/web_authentication_session/web_authenticate_session.dart
diff --git a/lib/src/web_message/main.dart b/flutter_inappwebview/lib/src/web_message/main.dart
similarity index 100%
rename from lib/src/web_message/main.dart
rename to flutter_inappwebview/lib/src/web_message/main.dart
diff --git a/lib/src/web_message/web_message_channel.dart b/flutter_inappwebview/lib/src/web_message/web_message_channel.dart
similarity index 100%
rename from lib/src/web_message/web_message_channel.dart
rename to flutter_inappwebview/lib/src/web_message/web_message_channel.dart
diff --git a/lib/src/web_message/web_message_listener.dart b/flutter_inappwebview/lib/src/web_message/web_message_listener.dart
similarity index 100%
rename from lib/src/web_message/web_message_listener.dart
rename to flutter_inappwebview/lib/src/web_message/web_message_listener.dart
diff --git a/lib/src/web_message/web_message_port.dart b/flutter_inappwebview/lib/src/web_message/web_message_port.dart
similarity index 100%
rename from lib/src/web_message/web_message_port.dart
rename to flutter_inappwebview/lib/src/web_message/web_message_port.dart
diff --git a/lib/src/web_storage/android/main.dart b/flutter_inappwebview/lib/src/web_storage/android/main.dart
similarity index 100%
rename from lib/src/web_storage/android/main.dart
rename to flutter_inappwebview/lib/src/web_storage/android/main.dart
diff --git a/lib/src/web_storage/android/web_storage_manager.dart b/flutter_inappwebview/lib/src/web_storage/android/web_storage_manager.dart
similarity index 100%
rename from lib/src/web_storage/android/web_storage_manager.dart
rename to flutter_inappwebview/lib/src/web_storage/android/web_storage_manager.dart
diff --git a/lib/src/web_storage/ios/main.dart b/flutter_inappwebview/lib/src/web_storage/ios/main.dart
similarity index 100%
rename from lib/src/web_storage/ios/main.dart
rename to flutter_inappwebview/lib/src/web_storage/ios/main.dart
diff --git a/lib/src/web_storage/ios/web_storage_manager.dart b/flutter_inappwebview/lib/src/web_storage/ios/web_storage_manager.dart
similarity index 100%
rename from lib/src/web_storage/ios/web_storage_manager.dart
rename to flutter_inappwebview/lib/src/web_storage/ios/web_storage_manager.dart
diff --git a/lib/src/web_storage/main.dart b/flutter_inappwebview/lib/src/web_storage/main.dart
similarity index 100%
rename from lib/src/web_storage/main.dart
rename to flutter_inappwebview/lib/src/web_storage/main.dart
diff --git a/lib/src/web_storage/web_storage.dart b/flutter_inappwebview/lib/src/web_storage/web_storage.dart
similarity index 100%
rename from lib/src/web_storage/web_storage.dart
rename to flutter_inappwebview/lib/src/web_storage/web_storage.dart
diff --git a/lib/src/web_storage/web_storage_manager.dart b/flutter_inappwebview/lib/src/web_storage/web_storage_manager.dart
similarity index 100%
rename from lib/src/web_storage/web_storage_manager.dart
rename to flutter_inappwebview/lib/src/web_storage/web_storage_manager.dart
diff --git a/lib/src/webview_asset_loader.dart b/flutter_inappwebview/lib/src/webview_asset_loader.dart
similarity index 100%
rename from lib/src/webview_asset_loader.dart
rename to flutter_inappwebview/lib/src/webview_asset_loader.dart
diff --git a/pubspec.yaml b/flutter_inappwebview/pubspec.yaml
similarity index 97%
rename from pubspec.yaml
rename to flutter_inappwebview/pubspec.yaml
index bff80ba5..023a7e1c 100755
--- a/pubspec.yaml
+++ b/flutter_inappwebview/pubspec.yaml
@@ -32,7 +32,7 @@ dev_dependencies:
flutter_lints: ^2.0.1
build_runner: ^2.2.1
generators:
- path: dev_packages/generators
+ path: ../dev_packages/generators
# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec
diff --git a/flutter_inappwebview_ios/lib/src/chrome_safari_browser/chrome_safari_browser.dart b/flutter_inappwebview_ios/lib/src/chrome_safari_browser/chrome_safari_browser.dart
index c377ec0e..1ea31618 100755
--- a/flutter_inappwebview_ios/lib/src/chrome_safari_browser/chrome_safari_browser.dart
+++ b/flutter_inappwebview_ios/lib/src/chrome_safari_browser/chrome_safari_browser.dart
@@ -127,7 +127,7 @@ class IOSChromeSafariBrowser extends PlatformChromeSafariBrowser
assert(url != null, 'The specified URL must not be null on iOS.');
assert(['http', 'https'].contains(url!.scheme),
- 'The specified URL has an unsupported scheme. Only HTTP and HTTPS URLs are supported on iOS.');
+ 'The specified URL has an unsupported scheme. Only HTTP and HTTPS URLs are supported on iOS.');
if (url != null) {
assert(url.toString().isNotEmpty, 'The specified URL must not be empty.');
}
diff --git a/flutter_inappwebview_ios/lib/src/cookie_manager.dart b/flutter_inappwebview_ios/lib/src/cookie_manager.dart
index 70d016d2..12869d00 100755
--- a/flutter_inappwebview_ios/lib/src/cookie_manager.dart
+++ b/flutter_inappwebview_ios/lib/src/cookie_manager.dart
@@ -31,8 +31,7 @@ class IOSCookieManagerCreationParams
}
///{@macro flutter_inappwebview_platform_interface.PlatformCookieManager}
-class IOSCookieManager extends PlatformCookieManager
- with ChannelController {
+class IOSCookieManager extends PlatformCookieManager with ChannelController {
/// Creates a new [IOSCookieManager].
IOSCookieManager(PlatformCookieManagerCreationParams params)
: super.implementation(
diff --git a/flutter_inappwebview_ios/lib/src/find_interaction/find_interaction_controller.dart b/flutter_inappwebview_ios/lib/src/find_interaction/find_interaction_controller.dart
index 83ea52b5..b262a12f 100644
--- a/flutter_inappwebview_ios/lib/src/find_interaction/find_interaction_controller.dart
+++ b/flutter_inappwebview_ios/lib/src/find_interaction/find_interaction_controller.dart
@@ -138,8 +138,7 @@ class IOSFindInteractionController extends PlatformFindInteractionController
}
}
-extension InternalFindInteractionController
- on IOSFindInteractionController {
+extension InternalFindInteractionController on IOSFindInteractionController {
void init(dynamic id) {
channel = MethodChannel(
'com.pichillilorenzo/flutter_inappwebview_find_interaction_$id');
diff --git a/flutter_inappwebview_ios/lib/src/http_auth_credentials_database.dart b/flutter_inappwebview_ios/lib/src/http_auth_credentials_database.dart
index 4de0fb6c..cc2dc8df 100755
--- a/flutter_inappwebview_ios/lib/src/http_auth_credentials_database.dart
+++ b/flutter_inappwebview_ios/lib/src/http_auth_credentials_database.dart
@@ -26,8 +26,8 @@ class IOSHttpAuthCredentialDatabaseCreationParams
}
///{@macro flutter_inappwebview_platform_interface.PlatformHttpAuthCredentialDatabase}
-class IOSHttpAuthCredentialDatabase
- extends PlatformHttpAuthCredentialDatabase with ChannelController {
+class IOSHttpAuthCredentialDatabase extends PlatformHttpAuthCredentialDatabase
+ with ChannelController {
/// Creates a new [IOSHttpAuthCredentialDatabase].
IOSHttpAuthCredentialDatabase(
PlatformHttpAuthCredentialDatabaseCreationParams params)
@@ -149,7 +149,6 @@ class IOSHttpAuthCredentialDatabase
}
}
-extension InternalHttpAuthCredentialDatabase
- on IOSHttpAuthCredentialDatabase {
+extension InternalHttpAuthCredentialDatabase on IOSHttpAuthCredentialDatabase {
get handleMethod => _handleMethod;
}
diff --git a/flutter_inappwebview_ios/lib/src/in_app_browser/in_app_browser.dart b/flutter_inappwebview_ios/lib/src/in_app_browser/in_app_browser.dart
index fd4a6adf..1971b4e7 100755
--- a/flutter_inappwebview_ios/lib/src/in_app_browser/in_app_browser.dart
+++ b/flutter_inappwebview_ios/lib/src/in_app_browser/in_app_browser.dart
@@ -14,8 +14,7 @@ import '../pull_to_refresh/pull_to_refresh_controller.dart';
/// When adding additional fields make sure they can be null or have a default
/// value to avoid breaking changes. See [PlatformInAppBrowserCreationParams] for
/// more information.
-class IOSInAppBrowserCreationParams
- extends PlatformInAppBrowserCreationParams {
+class IOSInAppBrowserCreationParams extends PlatformInAppBrowserCreationParams {
/// Creates a new [IOSInAppBrowserCreationParams] instance.
IOSInAppBrowserCreationParams(
{super.contextMenu,
@@ -33,8 +32,8 @@ class IOSInAppBrowserCreationParams
contextMenu: params.contextMenu,
pullToRefreshController:
params.pullToRefreshController as IOSPullToRefreshController?,
- findInteractionController: params.findInteractionController
- as IOSFindInteractionController?,
+ findInteractionController:
+ params.findInteractionController as IOSFindInteractionController?,
initialUserScripts: params.initialUserScripts,
windowId: params.windowId);
}
diff --git a/flutter_inappwebview_ios/lib/src/in_app_webview/headless_in_app_webview.dart b/flutter_inappwebview_ios/lib/src/in_app_webview/headless_in_app_webview.dart
index bf514787..0e9da653 100644
--- a/flutter_inappwebview_ios/lib/src/in_app_webview/headless_in_app_webview.dart
+++ b/flutter_inappwebview_ios/lib/src/in_app_webview/headless_in_app_webview.dart
@@ -237,8 +237,8 @@ class IOSHeadlessInAppWebViewCreationParams
initialSettings: params.initialSettings,
contextMenu: params.contextMenu,
initialUserScripts: params.initialUserScripts,
- pullToRefreshController: params.pullToRefreshController
- as IOSPullToRefreshController?,
+ pullToRefreshController:
+ params.pullToRefreshController as IOSPullToRefreshController?,
findInteractionController: params.findInteractionController
as IOSFindInteractionController?);
@@ -284,8 +284,7 @@ class IOSHeadlessInAppWebView extends PlatformHeadlessInAppWebView
_init() {
_webViewController = IOSInAppWebViewController(
- IOSInAppWebViewControllerCreationParams(
- id: id, webviewParams: params),
+ IOSInAppWebViewControllerCreationParams(id: id, webviewParams: params),
);
_controllerFromPlatform =
params.controllerFromPlatform?.call(_webViewController!) ??
diff --git a/flutter_inappwebview_ios/lib/src/in_app_webview/in_app_webview.dart b/flutter_inappwebview_ios/lib/src/in_app_webview/in_app_webview.dart
index a9bcdd82..5c773779 100755
--- a/flutter_inappwebview_ios/lib/src/in_app_webview/in_app_webview.dart
+++ b/flutter_inappwebview_ios/lib/src/in_app_webview/in_app_webview.dart
@@ -247,8 +247,8 @@ class IOSInAppWebViewWidgetCreationParams
initialSettings: params.initialSettings,
contextMenu: params.contextMenu,
initialUserScripts: params.initialUserScripts,
- pullToRefreshController: params.pullToRefreshController
- as IOSPullToRefreshController?,
+ pullToRefreshController:
+ params.pullToRefreshController as IOSPullToRefreshController?,
findInteractionController: params.findInteractionController
as IOSFindInteractionController?);
@@ -286,12 +286,11 @@ class IOSInAppWebViewWidget extends PlatformInAppWebViewWidget {
_iosParams.initialSettings ?? InAppWebViewSettings();
_inferInitialSettings(initialSettings);
- Map settingsMap = (_iosParams.initialSettings != null
- ? initialSettings.toMap()
- : null) ??
- // ignore: deprecated_member_use_from_same_package
- _iosParams.initialOptions?.toMap() ??
- initialSettings.toMap();
+ Map settingsMap =
+ (_iosParams.initialSettings != null ? initialSettings.toMap() : null) ??
+ // ignore: deprecated_member_use_from_same_package
+ _iosParams.initialOptions?.toMap() ??
+ initialSettings.toMap();
Map pullToRefreshSettings =
_iosParams.pullToRefreshController?.params.settings.toMap() ??
@@ -323,7 +322,7 @@ class IOSInAppWebViewWidget extends PlatformInAppWebViewWidget {
? _iosParams.headlessWebView?.id
: null,
'initialUserScripts':
- _iosParams.initialUserScripts?.map((e) => e.toMap()).toList() ?? [],
+ _iosParams.initialUserScripts?.map((e) => e.toMap()).toList() ?? [],
'pullToRefreshSettings': pullToRefreshSettings,
'keepAliveId': _iosParams.keepAlive?.id,
'preventGestureDelay': _iosParams.preventGestureDelay
diff --git a/flutter_inappwebview_ios/lib/src/in_app_webview/in_app_webview_controller.dart b/flutter_inappwebview_ios/lib/src/in_app_webview/in_app_webview_controller.dart
index e3b4925f..e51f3490 100644
--- a/flutter_inappwebview_ios/lib/src/in_app_webview/in_app_webview_controller.dart
+++ b/flutter_inappwebview_ios/lib/src/in_app_webview/in_app_webview_controller.dart
@@ -91,10 +91,8 @@ class IOSInAppWebViewController extends PlatformInAppWebViewController
@override
late IOSWebStorage webStorage;
- IOSInAppWebViewController(
- PlatformInAppWebViewControllerCreationParams params)
- : super.implementation(params
- is IOSInAppWebViewControllerCreationParams
+ IOSInAppWebViewController(PlatformInAppWebViewControllerCreationParams params)
+ : super.implementation(params is IOSInAppWebViewControllerCreationParams
? params
: IOSInAppWebViewControllerCreationParams
.fromPlatformInAppWebViewControllerCreationParams(params)) {
@@ -134,11 +132,10 @@ class IOSInAppWebViewController extends PlatformInAppWebViewController
MethodChannel channel,
IOSInAppBrowser inAppBrowser,
UnmodifiableListView? initialUserScripts)
- : super.implementation(
- params is IOSInAppWebViewControllerCreationParams
- ? params
- : IOSInAppWebViewControllerCreationParams
- .fromPlatformInAppWebViewControllerCreationParams(params)) {
+ : super.implementation(params is IOSInAppWebViewControllerCreationParams
+ ? params
+ : IOSInAppWebViewControllerCreationParams
+ .fromPlatformInAppWebViewControllerCreationParams(params)) {
this.channel = channel;
this._inAppBrowser = inAppBrowser;
@@ -165,8 +162,7 @@ class IOSInAppWebViewController extends PlatformInAppWebViewController
webStorage = IOSWebStorage(IOSWebStorageCreationParams(
localStorage: IOSLocalStorage.defaultStorage(controller: this),
- sessionStorage:
- IOSSessionStorage.defaultStorage(controller: this)));
+ sessionStorage: IOSSessionStorage.defaultStorage(controller: this)));
if (params.webviewParams is PlatformInAppWebViewWidgetCreationParams) {
final keepAlive =
@@ -2499,8 +2495,8 @@ class IOSInAppWebViewController extends PlatformInAppWebViewController
Future saveWebArchive(
{required String filePath, bool autoname = false}) async {
if (!autoname) {
- assert(filePath
- .endsWith("." + WebArchiveFormat.WEBARCHIVE.toNativeValue()));
+ assert(
+ filePath.endsWith("." + WebArchiveFormat.WEBARCHIVE.toNativeValue()));
}
Map args = {};
diff --git a/flutter_inappwebview_ios/lib/src/web_authentication_session/web_authenticate_session.dart b/flutter_inappwebview_ios/lib/src/web_authentication_session/web_authenticate_session.dart
index 8d2160b1..da6eb9c1 100755
--- a/flutter_inappwebview_ios/lib/src/web_authentication_session/web_authenticate_session.dart
+++ b/flutter_inappwebview_ios/lib/src/web_authentication_session/web_authenticate_session.dart
@@ -91,7 +91,7 @@ class IOSWebAuthenticationSession extends PlatformWebAuthenticationSession
: super.implementation(IOSWebAuthenticationSessionCreationParams()) {
assert(url.toString().isNotEmpty);
assert(['http', 'https'].contains(url.scheme),
- 'The specified URL has an unsupported scheme. Only HTTP and HTTPS URLs are supported on iOS.');
+ 'The specified URL has an unsupported scheme. Only HTTP and HTTPS URLs are supported on iOS.');
this.initialSettings =
initialSettings ?? WebAuthenticationSessionSettings();
diff --git a/flutter_inappwebview_ios/lib/src/web_message/web_message_channel.dart b/flutter_inappwebview_ios/lib/src/web_message/web_message_channel.dart
index dec20653..9f3ce2d2 100644
--- a/flutter_inappwebview_ios/lib/src/web_message/web_message_channel.dart
+++ b/flutter_inappwebview_ios/lib/src/web_message/web_message_channel.dart
@@ -50,10 +50,8 @@ class IOSWebMessageChannel extends PlatformWebMessageChannel
static final IOSWebMessageChannel _staticValue = IOSWebMessageChannel(
IOSWebMessageChannelCreationParams(
id: '',
- port1: IOSWebMessagePort(
- IOSWebMessagePortCreationParams(index: 0)),
- port2: IOSWebMessagePort(
- IOSWebMessagePortCreationParams(index: 1))));
+ port1: IOSWebMessagePort(IOSWebMessagePortCreationParams(index: 0)),
+ port2: IOSWebMessagePort(IOSWebMessagePortCreationParams(index: 1))));
/// Provide static access.
factory IOSWebMessageChannel.static() {
@@ -71,10 +69,9 @@ class IOSWebMessageChannel extends PlatformWebMessageChannel
var webMessageChannel = IOSWebMessageChannel(
IOSWebMessageChannelCreationParams(
id: map["id"],
- port1: IOSWebMessagePort(
- IOSWebMessagePortCreationParams(index: 0)),
- port2: IOSWebMessagePort(
- IOSWebMessagePortCreationParams(index: 1))));
+ port1: IOSWebMessagePort(IOSWebMessagePortCreationParams(index: 0)),
+ port2:
+ IOSWebMessagePort(IOSWebMessagePortCreationParams(index: 1))));
webMessageChannel._iosPort1.webMessageChannel = webMessageChannel;
webMessageChannel._iosPort2.webMessageChannel = webMessageChannel;
return webMessageChannel;
diff --git a/flutter_inappwebview_ios/lib/src/web_storage/web_storage.dart b/flutter_inappwebview_ios/lib/src/web_storage/web_storage.dart
index 45fa637b..462a7781 100644
--- a/flutter_inappwebview_ios/lib/src/web_storage/web_storage.dart
+++ b/flutter_inappwebview_ios/lib/src/web_storage/web_storage.dart
@@ -173,8 +173,7 @@ abstract class IOSStorage implements PlatformStorage {
/// When adding additional fields make sure they can be null or have a default
/// value to avoid breaking changes. See [PlatformLocalStorageCreationParams] for
/// more information.
-class IOSLocalStorageCreationParams
- extends PlatformLocalStorageCreationParams {
+class IOSLocalStorageCreationParams extends PlatformLocalStorageCreationParams {
/// Creates a new [IOSLocalStorageCreationParams] instance.
IOSLocalStorageCreationParams(super.params);
diff --git a/flutter_inappwebview_macos/lib/src/cookie_manager.dart b/flutter_inappwebview_macos/lib/src/cookie_manager.dart
index 3fbc69a0..dfa1e8a6 100755
--- a/flutter_inappwebview_macos/lib/src/cookie_manager.dart
+++ b/flutter_inappwebview_macos/lib/src/cookie_manager.dart
@@ -31,8 +31,7 @@ class MacOSCookieManagerCreationParams
}
///{@macro flutter_inappwebview_platform_interface.PlatformCookieManager}
-class MacOSCookieManager extends PlatformCookieManager
- with ChannelController {
+class MacOSCookieManager extends PlatformCookieManager with ChannelController {
/// Creates a new [MacOSCookieManager].
MacOSCookieManager(PlatformCookieManagerCreationParams params)
: super.implementation(
diff --git a/flutter_inappwebview_macos/lib/src/find_interaction/find_interaction_controller.dart b/flutter_inappwebview_macos/lib/src/find_interaction/find_interaction_controller.dart
index e8810f26..ca291cbc 100644
--- a/flutter_inappwebview_macos/lib/src/find_interaction/find_interaction_controller.dart
+++ b/flutter_inappwebview_macos/lib/src/find_interaction/find_interaction_controller.dart
@@ -114,8 +114,7 @@ class MacOSFindInteractionController extends PlatformFindInteractionController
}
}
-extension InternalFindInteractionController
- on MacOSFindInteractionController {
+extension InternalFindInteractionController on MacOSFindInteractionController {
void init(dynamic id) {
channel = MethodChannel(
'com.pichillilorenzo/flutter_inappwebview_find_interaction_$id');
diff --git a/flutter_inappwebview_macos/lib/src/http_auth_credentials_database.dart b/flutter_inappwebview_macos/lib/src/http_auth_credentials_database.dart
index 4b07865c..28c9126f 100755
--- a/flutter_inappwebview_macos/lib/src/http_auth_credentials_database.dart
+++ b/flutter_inappwebview_macos/lib/src/http_auth_credentials_database.dart
@@ -26,8 +26,8 @@ class MacOSHttpAuthCredentialDatabaseCreationParams
}
///{@macro flutter_inappwebview_platform_interface.PlatformHttpAuthCredentialDatabase}
-class MacOSHttpAuthCredentialDatabase
- extends PlatformHttpAuthCredentialDatabase with ChannelController {
+class MacOSHttpAuthCredentialDatabase extends PlatformHttpAuthCredentialDatabase
+ with ChannelController {
/// Creates a new [MacOSHttpAuthCredentialDatabase].
MacOSHttpAuthCredentialDatabase(
PlatformHttpAuthCredentialDatabaseCreationParams params)
diff --git a/flutter_inappwebview_macos/lib/src/in_app_browser/in_app_browser.dart b/flutter_inappwebview_macos/lib/src/in_app_browser/in_app_browser.dart
index 429f1273..2a61f4f9 100755
--- a/flutter_inappwebview_macos/lib/src/in_app_browser/in_app_browser.dart
+++ b/flutter_inappwebview_macos/lib/src/in_app_browser/in_app_browser.dart
@@ -31,8 +31,8 @@ class MacOSInAppBrowserCreationParams
return MacOSInAppBrowserCreationParams(
contextMenu: params.contextMenu,
pullToRefreshController: params.pullToRefreshController,
- findInteractionController: params.findInteractionController
- as MacOSFindInteractionController?,
+ findInteractionController:
+ params.findInteractionController as MacOSFindInteractionController?,
initialUserScripts: params.initialUserScripts,
windowId: params.windowId);
}
diff --git a/flutter_inappwebview_macos/lib/src/in_app_webview/headless_in_app_webview.dart b/flutter_inappwebview_macos/lib/src/in_app_webview/headless_in_app_webview.dart
index cb7dfc3e..23055add 100644
--- a/flutter_inappwebview_macos/lib/src/in_app_webview/headless_in_app_webview.dart
+++ b/flutter_inappwebview_macos/lib/src/in_app_webview/headless_in_app_webview.dart
@@ -279,8 +279,7 @@ class MacOSHeadlessInAppWebView extends PlatformHeadlessInAppWebView
_init() {
_webViewController = MacOSInAppWebViewController(
- MacOSInAppWebViewControllerCreationParams(
- id: id, webviewParams: params),
+ MacOSInAppWebViewControllerCreationParams(id: id, webviewParams: params),
);
_controllerFromPlatform =
params.controllerFromPlatform?.call(_webViewController!) ??
diff --git a/flutter_inappwebview_macos/lib/src/in_app_webview/in_app_webview.dart b/flutter_inappwebview_macos/lib/src/in_app_webview/in_app_webview.dart
index 76627d16..43680d5f 100755
--- a/flutter_inappwebview_macos/lib/src/in_app_webview/in_app_webview.dart
+++ b/flutter_inappwebview_macos/lib/src/in_app_webview/in_app_webview.dart
@@ -317,7 +317,8 @@ class MacOSInAppWebViewWidget extends PlatformInAppWebViewWidget {
? _macosParams.headlessWebView?.id
: null,
'initialUserScripts':
- _macosParams.initialUserScripts?.map((e) => e.toMap()).toList() ?? [],
+ _macosParams.initialUserScripts?.map((e) => e.toMap()).toList() ??
+ [],
'pullToRefreshSettings': pullToRefreshSettings,
'keepAliveId': _macosParams.keepAlive?.id,
'preventGestureDelay': _macosParams.preventGestureDelay
diff --git a/flutter_inappwebview_macos/lib/src/in_app_webview/in_app_webview_controller.dart b/flutter_inappwebview_macos/lib/src/in_app_webview/in_app_webview_controller.dart
index 41332671..4c34d299 100644
--- a/flutter_inappwebview_macos/lib/src/in_app_webview/in_app_webview_controller.dart
+++ b/flutter_inappwebview_macos/lib/src/in_app_webview/in_app_webview_controller.dart
@@ -67,7 +67,7 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
// List of properties to be saved and restored for keep alive feature
Map _javaScriptHandlersMap =
- HashMap();
+ HashMap();
Map> _userScripts = {
UserScriptInjectionTime.AT_DOCUMENT_START: [],
UserScriptInjectionTime.AT_DOCUMENT_END: []
@@ -79,7 +79,7 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
// static map that contains the properties to be saved and restored for keep alive feature
static final Map
- _keepAliveMap = {};
+ _keepAliveMap = {};
MacOSInAppBrowser? _inAppBrowser;
@@ -93,11 +93,10 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
MacOSInAppWebViewController(
PlatformInAppWebViewControllerCreationParams params)
- : super.implementation(params
- is MacOSInAppWebViewControllerCreationParams
- ? params
- : MacOSInAppWebViewControllerCreationParams
- .fromPlatformInAppWebViewControllerCreationParams(params)) {
+ : super.implementation(params is MacOSInAppWebViewControllerCreationParams
+ ? params
+ : MacOSInAppWebViewControllerCreationParams
+ .fromPlatformInAppWebViewControllerCreationParams(params)) {
channel = MethodChannel('com.pichillilorenzo/flutter_inappwebview_$id');
handler = handleMethod;
initMethodCallHandler();
@@ -122,8 +121,8 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
}
static final MacOSInAppWebViewController _staticValue =
- MacOSInAppWebViewController(
- MacOSInAppWebViewControllerCreationParams(id: null));
+ MacOSInAppWebViewController(
+ MacOSInAppWebViewControllerCreationParams(id: null));
factory MacOSInAppWebViewController.static() {
return _staticValue;
@@ -134,11 +133,10 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
MethodChannel channel,
MacOSInAppBrowser inAppBrowser,
UnmodifiableListView? initialUserScripts)
- : super.implementation(
- params is MacOSInAppWebViewControllerCreationParams
- ? params
- : MacOSInAppWebViewControllerCreationParams
- .fromPlatformInAppWebViewControllerCreationParams(params)) {
+ : super.implementation(params is MacOSInAppWebViewControllerCreationParams
+ ? params
+ : MacOSInAppWebViewControllerCreationParams
+ .fromPlatformInAppWebViewControllerCreationParams(params)) {
this.channel = channel;
this._inAppBrowser = inAppBrowser;
@@ -165,8 +163,7 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
webStorage = MacOSWebStorage(MacOSWebStorageCreationParams(
localStorage: MacOSLocalStorage.defaultStorage(controller: this),
- sessionStorage:
- MacOSSessionStorage.defaultStorage(controller: this)));
+ sessionStorage: MacOSSessionStorage.defaultStorage(controller: this)));
if (params.webviewParams is PlatformInAppWebViewWidgetCreationParams) {
final keepAlive =
@@ -190,9 +187,9 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
_userScripts = props.userScripts;
_webMessageListenerObjNames = props.webMessageListenerObjNames;
_webMessageChannels =
- props.webMessageChannels as Set;
+ props.webMessageChannels as Set;
_webMessageListeners =
- props.webMessageListeners as Set;
+ props.webMessageListeners as Set;
}
}
}
@@ -206,7 +203,7 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
: _inAppBrowser.runtimeType.toString(),
id: (getViewId() ?? _inAppBrowser?.id).toString(),
debugLoggingSettings:
- PlatformInAppWebViewController.debugLoggingSettings,
+ PlatformInAppWebViewController.debugLoggingSettings,
method: method,
args: args);
}
@@ -243,9 +240,9 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
break;
case "onReceivedError":
if ((webviewParams != null &&
- (webviewParams!.onReceivedError != null ||
- // ignore: deprecated_member_use_from_same_package
- webviewParams!.onLoadError != null)) ||
+ (webviewParams!.onReceivedError != null ||
+ // ignore: deprecated_member_use_from_same_package
+ webviewParams!.onLoadError != null)) ||
_inAppBrowserEventHandler != null) {
WebResourceRequest request = WebResourceRequest.fromMap(
call.arguments["request"].cast())!;
@@ -273,9 +270,9 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
break;
case "onReceivedHttpError":
if ((webviewParams != null &&
- (webviewParams!.onReceivedHttpError != null ||
- // ignore: deprecated_member_use_from_same_package
- webviewParams!.onLoadHttpError != null)) ||
+ (webviewParams!.onReceivedHttpError != null ||
+ // ignore: deprecated_member_use_from_same_package
+ webviewParams!.onLoadHttpError != null)) ||
_inAppBrowserEventHandler != null) {
WebResourceRequest request = WebResourceRequest.fromMap(
call.arguments["request"].cast())!;
@@ -309,7 +306,7 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
break;
case "onProgressChanged":
if ((webviewParams != null &&
- webviewParams!.onProgressChanged != null) ||
+ webviewParams!.onProgressChanged != null) ||
_inAppBrowserEventHandler != null) {
int progress = call.arguments["progress"];
if (webviewParams != null && webviewParams!.onProgressChanged != null)
@@ -321,29 +318,29 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
break;
case "shouldOverrideUrlLoading":
if ((webviewParams != null &&
- webviewParams!.shouldOverrideUrlLoading != null) ||
+ webviewParams!.shouldOverrideUrlLoading != null) ||
_inAppBrowserEventHandler != null) {
Map arguments =
- call.arguments.cast();
+ call.arguments.cast();
NavigationAction navigationAction =
- NavigationAction.fromMap(arguments)!;
+ NavigationAction.fromMap(arguments)!;
if (webviewParams != null &&
webviewParams!.shouldOverrideUrlLoading != null)
return (await webviewParams!.shouldOverrideUrlLoading!(
- _controllerFromPlatform, navigationAction))
+ _controllerFromPlatform, navigationAction))
?.toNativeValue();
return (await _inAppBrowserEventHandler!
- .shouldOverrideUrlLoading(navigationAction))
+ .shouldOverrideUrlLoading(navigationAction))
?.toNativeValue();
}
break;
case "onConsoleMessage":
if ((webviewParams != null &&
- webviewParams!.onConsoleMessage != null) ||
+ webviewParams!.onConsoleMessage != null) ||
_inAppBrowserEventHandler != null) {
Map arguments =
- call.arguments.cast();
+ call.arguments.cast();
ConsoleMessage consoleMessage = ConsoleMessage.fromMap(arguments)!;
if (webviewParams != null && webviewParams!.onConsoleMessage != null)
webviewParams!.onConsoleMessage!(
@@ -365,14 +362,14 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
break;
case "onDownloadStartRequest":
if ((webviewParams != null &&
- // ignore: deprecated_member_use_from_same_package
- (webviewParams!.onDownloadStart != null ||
- webviewParams!.onDownloadStartRequest != null)) ||
+ // ignore: deprecated_member_use_from_same_package
+ (webviewParams!.onDownloadStart != null ||
+ webviewParams!.onDownloadStartRequest != null)) ||
_inAppBrowserEventHandler != null) {
Map arguments =
- call.arguments.cast();
+ call.arguments.cast();
DownloadStartRequest downloadStartRequest =
- DownloadStartRequest.fromMap(arguments)!;
+ DownloadStartRequest.fromMap(arguments)!;
if (webviewParams != null) {
if (webviewParams!.onDownloadStartRequest != null)
@@ -394,32 +391,32 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
break;
case "onLoadResourceWithCustomScheme":
if ((webviewParams != null &&
- (webviewParams!.onLoadResourceWithCustomScheme != null ||
- // ignore: deprecated_member_use_from_same_package
- webviewParams!.onLoadResourceCustomScheme != null)) ||
+ (webviewParams!.onLoadResourceWithCustomScheme != null ||
+ // ignore: deprecated_member_use_from_same_package
+ webviewParams!.onLoadResourceCustomScheme != null)) ||
_inAppBrowserEventHandler != null) {
Map requestMap =
- call.arguments["request"].cast();
+ call.arguments["request"].cast();
WebResourceRequest request = WebResourceRequest.fromMap(requestMap)!;
if (webviewParams != null) {
if (webviewParams!.onLoadResourceWithCustomScheme != null)
return (await webviewParams!.onLoadResourceWithCustomScheme!(
- _controllerFromPlatform, request))
+ _controllerFromPlatform, request))
?.toMap();
else {
return (await params
- .webviewParams!
- // ignore: deprecated_member_use_from_same_package
- .onLoadResourceCustomScheme!(
- _controllerFromPlatform, request.url))
+ .webviewParams!
+ // ignore: deprecated_member_use_from_same_package
+ .onLoadResourceCustomScheme!(
+ _controllerFromPlatform, request.url))
?.toMap();
}
} else {
return ((await _inAppBrowserEventHandler!
- .onLoadResourceWithCustomScheme(request)) ??
- (await _inAppBrowserEventHandler!
- .onLoadResourceCustomScheme(request.url)))
+ .onLoadResourceWithCustomScheme(request)) ??
+ (await _inAppBrowserEventHandler!
+ .onLoadResourceCustomScheme(request.url)))
?.toMap();
}
}
@@ -428,9 +425,9 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
if ((webviewParams != null && webviewParams!.onCreateWindow != null) ||
_inAppBrowserEventHandler != null) {
Map arguments =
- call.arguments.cast();
+ call.arguments.cast();
CreateWindowAction createWindowAction =
- CreateWindowAction.fromMap(arguments)!;
+ CreateWindowAction.fromMap(arguments)!;
if (webviewParams != null && webviewParams!.onCreateWindow != null)
return await webviewParams!.onCreateWindow!(
@@ -458,31 +455,31 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
break;
case "onGeolocationPermissionsShowPrompt":
if ((webviewParams != null &&
- (webviewParams!.onGeolocationPermissionsShowPrompt != null ||
- // ignore: deprecated_member_use_from_same_package
- webviewParams!.androidOnGeolocationPermissionsShowPrompt !=
- null)) ||
+ (webviewParams!.onGeolocationPermissionsShowPrompt != null ||
+ // ignore: deprecated_member_use_from_same_package
+ webviewParams!.androidOnGeolocationPermissionsShowPrompt !=
+ null)) ||
_inAppBrowserEventHandler != null) {
String origin = call.arguments["origin"];
if (webviewParams != null) {
if (webviewParams!.onGeolocationPermissionsShowPrompt != null)
return (await webviewParams!.onGeolocationPermissionsShowPrompt!(
- _controllerFromPlatform, origin))
+ _controllerFromPlatform, origin))
?.toMap();
else {
return (await params
- .webviewParams!
- // ignore: deprecated_member_use_from_same_package
- .androidOnGeolocationPermissionsShowPrompt!(
- _controllerFromPlatform, origin))
+ .webviewParams!
+ // ignore: deprecated_member_use_from_same_package
+ .androidOnGeolocationPermissionsShowPrompt!(
+ _controllerFromPlatform, origin))
?.toMap();
}
} else {
return ((await _inAppBrowserEventHandler!
- .onGeolocationPermissionsShowPrompt(origin)) ??
- (await _inAppBrowserEventHandler!
- .androidOnGeolocationPermissionsShowPrompt(origin)))
+ .onGeolocationPermissionsShowPrompt(origin)) ??
+ (await _inAppBrowserEventHandler!
+ .androidOnGeolocationPermissionsShowPrompt(origin)))
?.toMap();
}
}
@@ -510,40 +507,40 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
break;
case "shouldInterceptRequest":
if ((webviewParams != null &&
- (webviewParams!.shouldInterceptRequest != null ||
- // ignore: deprecated_member_use_from_same_package
- webviewParams!.androidShouldInterceptRequest != null)) ||
+ (webviewParams!.shouldInterceptRequest != null ||
+ // ignore: deprecated_member_use_from_same_package
+ webviewParams!.androidShouldInterceptRequest != null)) ||
_inAppBrowserEventHandler != null) {
Map arguments =
- call.arguments.cast();
+ call.arguments.cast();
WebResourceRequest request = WebResourceRequest.fromMap(arguments)!;
if (webviewParams != null) {
if (webviewParams!.shouldInterceptRequest != null)
return (await webviewParams!.shouldInterceptRequest!(
- _controllerFromPlatform, request))
+ _controllerFromPlatform, request))
?.toMap();
else {
// ignore: deprecated_member_use_from_same_package
return (await webviewParams!.androidShouldInterceptRequest!(
- _controllerFromPlatform, request))
+ _controllerFromPlatform, request))
?.toMap();
}
} else {
return ((await _inAppBrowserEventHandler!
- .shouldInterceptRequest(request)) ??
- (await _inAppBrowserEventHandler!
- .androidShouldInterceptRequest(request)))
+ .shouldInterceptRequest(request)) ??
+ (await _inAppBrowserEventHandler!
+ .androidShouldInterceptRequest(request)))
?.toMap();
}
}
break;
case "onRenderProcessUnresponsive":
if ((webviewParams != null &&
- (webviewParams!.onRenderProcessUnresponsive != null ||
- // ignore: deprecated_member_use_from_same_package
- webviewParams!.androidOnRenderProcessUnresponsive !=
- null)) ||
+ (webviewParams!.onRenderProcessUnresponsive != null ||
+ // ignore: deprecated_member_use_from_same_package
+ webviewParams!.androidOnRenderProcessUnresponsive !=
+ null)) ||
_inAppBrowserEventHandler != null) {
String? url = call.arguments["url"];
WebUri? uri = url != null ? WebUri(url) : null;
@@ -551,28 +548,28 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
if (webviewParams != null) {
if (webviewParams!.onRenderProcessUnresponsive != null)
return (await webviewParams!.onRenderProcessUnresponsive!(
- _controllerFromPlatform, uri))
+ _controllerFromPlatform, uri))
?.toNativeValue();
else {
// ignore: deprecated_member_use_from_same_package
return (await webviewParams!.androidOnRenderProcessUnresponsive!(
- _controllerFromPlatform, uri))
+ _controllerFromPlatform, uri))
?.toNativeValue();
}
} else {
return ((await _inAppBrowserEventHandler!
- .onRenderProcessUnresponsive(uri)) ??
- (await _inAppBrowserEventHandler!
- .androidOnRenderProcessUnresponsive(uri)))
+ .onRenderProcessUnresponsive(uri)) ??
+ (await _inAppBrowserEventHandler!
+ .androidOnRenderProcessUnresponsive(uri)))
?.toNativeValue();
}
}
break;
case "onRenderProcessResponsive":
if ((webviewParams != null &&
- (webviewParams!.onRenderProcessResponsive != null ||
- // ignore: deprecated_member_use_from_same_package
- webviewParams!.androidOnRenderProcessResponsive != null)) ||
+ (webviewParams!.onRenderProcessResponsive != null ||
+ // ignore: deprecated_member_use_from_same_package
+ webviewParams!.androidOnRenderProcessResponsive != null)) ||
_inAppBrowserEventHandler != null) {
String? url = call.arguments["url"];
WebUri? uri = url != null ? WebUri(url) : null;
@@ -580,33 +577,33 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
if (webviewParams != null) {
if (webviewParams!.onRenderProcessResponsive != null)
return (await webviewParams!.onRenderProcessResponsive!(
- _controllerFromPlatform, uri))
+ _controllerFromPlatform, uri))
?.toNativeValue();
else {
// ignore: deprecated_member_use_from_same_package
return (await webviewParams!.androidOnRenderProcessResponsive!(
- _controllerFromPlatform, uri))
+ _controllerFromPlatform, uri))
?.toNativeValue();
}
} else {
return ((await _inAppBrowserEventHandler!
- .onRenderProcessResponsive(uri)) ??
- (await _inAppBrowserEventHandler!
- .androidOnRenderProcessResponsive(uri)))
+ .onRenderProcessResponsive(uri)) ??
+ (await _inAppBrowserEventHandler!
+ .androidOnRenderProcessResponsive(uri)))
?.toNativeValue();
}
}
break;
case "onRenderProcessGone":
if ((webviewParams != null &&
- (webviewParams!.onRenderProcessGone != null ||
- // ignore: deprecated_member_use_from_same_package
- webviewParams!.androidOnRenderProcessGone != null)) ||
+ (webviewParams!.onRenderProcessGone != null ||
+ // ignore: deprecated_member_use_from_same_package
+ webviewParams!.androidOnRenderProcessGone != null)) ||
_inAppBrowserEventHandler != null) {
Map arguments =
- call.arguments.cast();
+ call.arguments.cast();
RenderProcessGoneDetail detail =
- RenderProcessGoneDetail.fromMap(arguments)!;
+ RenderProcessGoneDetail.fromMap(arguments)!;
if (webviewParams != null) {
if (webviewParams!.onRenderProcessGone != null)
@@ -626,9 +623,9 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
break;
case "onFormResubmission":
if ((webviewParams != null &&
- (webviewParams!.onFormResubmission != null ||
- // ignore: deprecated_member_use_from_same_package
- webviewParams!.androidOnFormResubmission != null)) ||
+ (webviewParams!.onFormResubmission != null ||
+ // ignore: deprecated_member_use_from_same_package
+ webviewParams!.androidOnFormResubmission != null)) ||
_inAppBrowserEventHandler != null) {
String? url = call.arguments["url"];
WebUri? uri = url != null ? WebUri(url) : null;
@@ -636,29 +633,29 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
if (webviewParams != null) {
if (webviewParams!.onFormResubmission != null)
return (await webviewParams!.onFormResubmission!(
- _controllerFromPlatform, uri))
+ _controllerFromPlatform, uri))
?.toNativeValue();
else {
// ignore: deprecated_member_use_from_same_package
return (await webviewParams!.androidOnFormResubmission!(
- _controllerFromPlatform, uri))
+ _controllerFromPlatform, uri))
?.toNativeValue();
}
} else {
return ((await _inAppBrowserEventHandler!
- .onFormResubmission(uri)) ??
- // ignore: deprecated_member_use_from_same_package
- (await _inAppBrowserEventHandler!
- .androidOnFormResubmission(uri)))
+ .onFormResubmission(uri)) ??
+ // ignore: deprecated_member_use_from_same_package
+ (await _inAppBrowserEventHandler!
+ .androidOnFormResubmission(uri)))
?.toNativeValue();
}
}
break;
case "onZoomScaleChanged":
if ((webviewParams != null &&
- // ignore: deprecated_member_use_from_same_package
- (webviewParams!.androidOnScaleChanged != null ||
- webviewParams!.onZoomScaleChanged != null)) ||
+ // ignore: deprecated_member_use_from_same_package
+ (webviewParams!.androidOnScaleChanged != null ||
+ webviewParams!.onZoomScaleChanged != null)) ||
_inAppBrowserEventHandler != null) {
double oldScale = call.arguments["oldScale"];
double newScale = call.arguments["newScale"];
@@ -682,12 +679,12 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
break;
case "onReceivedIcon":
if ((webviewParams != null &&
- (webviewParams!.onReceivedIcon != null ||
- // ignore: deprecated_member_use_from_same_package
- webviewParams!.androidOnReceivedIcon != null)) ||
+ (webviewParams!.onReceivedIcon != null ||
+ // ignore: deprecated_member_use_from_same_package
+ webviewParams!.androidOnReceivedIcon != null)) ||
_inAppBrowserEventHandler != null) {
Uint8List icon =
- Uint8List.fromList(call.arguments["icon"].cast());
+ Uint8List.fromList(call.arguments["icon"].cast());
if (webviewParams != null) {
if (webviewParams!.onReceivedIcon != null)
@@ -706,9 +703,9 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
break;
case "onReceivedTouchIconUrl":
if ((webviewParams != null &&
- (webviewParams!.onReceivedTouchIconUrl != null ||
- // ignore: deprecated_member_use_from_same_package
- webviewParams!.androidOnReceivedTouchIconUrl != null)) ||
+ (webviewParams!.onReceivedTouchIconUrl != null ||
+ // ignore: deprecated_member_use_from_same_package
+ webviewParams!.androidOnReceivedTouchIconUrl != null)) ||
_inAppBrowserEventHandler != null) {
String url = call.arguments["url"];
bool precomposed = call.arguments["precomposed"];
@@ -735,12 +732,12 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
if ((webviewParams != null && webviewParams!.onJsAlert != null) ||
_inAppBrowserEventHandler != null) {
Map arguments =
- call.arguments.cast();
+ call.arguments.cast();
JsAlertRequest jsAlertRequest = JsAlertRequest.fromMap(arguments)!;
if (webviewParams != null && webviewParams!.onJsAlert != null)
return (await webviewParams!.onJsAlert!(
- _controllerFromPlatform, jsAlertRequest))
+ _controllerFromPlatform, jsAlertRequest))
?.toMap();
else
return (await _inAppBrowserEventHandler!.onJsAlert(jsAlertRequest))
@@ -751,17 +748,17 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
if ((webviewParams != null && webviewParams!.onJsConfirm != null) ||
_inAppBrowserEventHandler != null) {
Map arguments =
- call.arguments.cast();
+ call.arguments.cast();
JsConfirmRequest jsConfirmRequest =
- JsConfirmRequest.fromMap(arguments)!;
+ JsConfirmRequest.fromMap(arguments)!;
if (webviewParams != null && webviewParams!.onJsConfirm != null)
return (await webviewParams!.onJsConfirm!(
- _controllerFromPlatform, jsConfirmRequest))
+ _controllerFromPlatform, jsConfirmRequest))
?.toMap();
else
return (await _inAppBrowserEventHandler!
- .onJsConfirm(jsConfirmRequest))
+ .onJsConfirm(jsConfirmRequest))
?.toMap();
}
break;
@@ -769,89 +766,89 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
if ((webviewParams != null && webviewParams!.onJsPrompt != null) ||
_inAppBrowserEventHandler != null) {
Map arguments =
- call.arguments.cast();
+ call.arguments.cast();
JsPromptRequest jsPromptRequest = JsPromptRequest.fromMap(arguments)!;
if (webviewParams != null && webviewParams!.onJsPrompt != null)
return (await webviewParams!.onJsPrompt!(
- _controllerFromPlatform, jsPromptRequest))
+ _controllerFromPlatform, jsPromptRequest))
?.toMap();
else
return (await _inAppBrowserEventHandler!
- .onJsPrompt(jsPromptRequest))
+ .onJsPrompt(jsPromptRequest))
?.toMap();
}
break;
case "onJsBeforeUnload":
if ((webviewParams != null &&
- (webviewParams!.onJsBeforeUnload != null ||
- // ignore: deprecated_member_use_from_same_package
- webviewParams!.androidOnJsBeforeUnload != null)) ||
+ (webviewParams!.onJsBeforeUnload != null ||
+ // ignore: deprecated_member_use_from_same_package
+ webviewParams!.androidOnJsBeforeUnload != null)) ||
_inAppBrowserEventHandler != null) {
Map arguments =
- call.arguments.cast();
+ call.arguments.cast();
JsBeforeUnloadRequest jsBeforeUnloadRequest =
- JsBeforeUnloadRequest.fromMap(arguments)!;
+ JsBeforeUnloadRequest.fromMap(arguments)!;
if (webviewParams != null) {
if (webviewParams!.onJsBeforeUnload != null)
return (await webviewParams!.onJsBeforeUnload!(
- _controllerFromPlatform, jsBeforeUnloadRequest))
+ _controllerFromPlatform, jsBeforeUnloadRequest))
?.toMap();
else {
// ignore: deprecated_member_use_from_same_package
return (await webviewParams!.androidOnJsBeforeUnload!(
- _controllerFromPlatform, jsBeforeUnloadRequest))
+ _controllerFromPlatform, jsBeforeUnloadRequest))
?.toMap();
}
} else {
return ((await _inAppBrowserEventHandler!
- .onJsBeforeUnload(jsBeforeUnloadRequest)) ??
- (await _inAppBrowserEventHandler!
- .androidOnJsBeforeUnload(jsBeforeUnloadRequest)))
+ .onJsBeforeUnload(jsBeforeUnloadRequest)) ??
+ (await _inAppBrowserEventHandler!
+ .androidOnJsBeforeUnload(jsBeforeUnloadRequest)))
?.toMap();
}
}
break;
case "onSafeBrowsingHit":
if ((webviewParams != null &&
- (webviewParams!.onSafeBrowsingHit != null ||
- // ignore: deprecated_member_use_from_same_package
- webviewParams!.androidOnSafeBrowsingHit != null)) ||
+ (webviewParams!.onSafeBrowsingHit != null ||
+ // ignore: deprecated_member_use_from_same_package
+ webviewParams!.androidOnSafeBrowsingHit != null)) ||
_inAppBrowserEventHandler != null) {
String url = call.arguments["url"];
SafeBrowsingThreat? threatType =
- SafeBrowsingThreat.fromNativeValue(call.arguments["threatType"]);
+ SafeBrowsingThreat.fromNativeValue(call.arguments["threatType"]);
WebUri uri = WebUri(url);
if (webviewParams != null) {
if (webviewParams!.onSafeBrowsingHit != null)
return (await webviewParams!.onSafeBrowsingHit!(
- _controllerFromPlatform, uri, threatType))
+ _controllerFromPlatform, uri, threatType))
?.toMap();
else {
// ignore: deprecated_member_use_from_same_package
return (await webviewParams!.androidOnSafeBrowsingHit!(
- _controllerFromPlatform, uri, threatType))
+ _controllerFromPlatform, uri, threatType))
?.toMap();
}
} else {
return ((await _inAppBrowserEventHandler!
- .onSafeBrowsingHit(uri, threatType)) ??
- (await _inAppBrowserEventHandler!
- .androidOnSafeBrowsingHit(uri, threatType)))
+ .onSafeBrowsingHit(uri, threatType)) ??
+ (await _inAppBrowserEventHandler!
+ .androidOnSafeBrowsingHit(uri, threatType)))
?.toMap();
}
}
break;
case "onReceivedLoginRequest":
if ((webviewParams != null &&
- (webviewParams!.onReceivedLoginRequest != null ||
- // ignore: deprecated_member_use_from_same_package
- webviewParams!.androidOnReceivedLoginRequest != null)) ||
+ (webviewParams!.onReceivedLoginRequest != null ||
+ // ignore: deprecated_member_use_from_same_package
+ webviewParams!.androidOnReceivedLoginRequest != null)) ||
_inAppBrowserEventHandler != null) {
Map arguments =
- call.arguments.cast();
+ call.arguments.cast();
LoginRequest loginRequest = LoginRequest.fromMap(arguments)!;
if (webviewParams != null) {
@@ -873,12 +870,12 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
break;
case "onPermissionRequestCanceled":
if ((webviewParams != null &&
- webviewParams!.onPermissionRequestCanceled != null) ||
+ webviewParams!.onPermissionRequestCanceled != null) ||
_inAppBrowserEventHandler != null) {
Map arguments =
- call.arguments.cast();
+ call.arguments.cast();
PermissionRequest permissionRequest =
- PermissionRequest.fromMap(arguments)!;
+ PermissionRequest.fromMap(arguments)!;
if (webviewParams != null &&
webviewParams!.onPermissionRequestCanceled != null)
@@ -900,71 +897,71 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
break;
case "onReceivedHttpAuthRequest":
if ((webviewParams != null &&
- webviewParams!.onReceivedHttpAuthRequest != null) ||
+ webviewParams!.onReceivedHttpAuthRequest != null) ||
_inAppBrowserEventHandler != null) {
Map arguments =
- call.arguments.cast();
+ call.arguments.cast();
HttpAuthenticationChallenge challenge =
- HttpAuthenticationChallenge.fromMap(arguments)!;
+ HttpAuthenticationChallenge.fromMap(arguments)!;
if (webviewParams != null &&
webviewParams!.onReceivedHttpAuthRequest != null)
return (await webviewParams!.onReceivedHttpAuthRequest!(
- _controllerFromPlatform, challenge))
+ _controllerFromPlatform, challenge))
?.toMap();
else
return (await _inAppBrowserEventHandler!
- .onReceivedHttpAuthRequest(challenge))
+ .onReceivedHttpAuthRequest(challenge))
?.toMap();
}
break;
case "onReceivedServerTrustAuthRequest":
if ((webviewParams != null &&
- webviewParams!.onReceivedServerTrustAuthRequest != null) ||
+ webviewParams!.onReceivedServerTrustAuthRequest != null) ||
_inAppBrowserEventHandler != null) {
Map arguments =
- call.arguments.cast();
+ call.arguments.cast();
ServerTrustChallenge challenge =
- ServerTrustChallenge.fromMap(arguments)!;
+ ServerTrustChallenge.fromMap(arguments)!;
if (webviewParams != null &&
webviewParams!.onReceivedServerTrustAuthRequest != null)
return (await webviewParams!.onReceivedServerTrustAuthRequest!(
- _controllerFromPlatform, challenge))
+ _controllerFromPlatform, challenge))
?.toMap();
else
return (await _inAppBrowserEventHandler!
- .onReceivedServerTrustAuthRequest(challenge))
+ .onReceivedServerTrustAuthRequest(challenge))
?.toMap();
}
break;
case "onReceivedClientCertRequest":
if ((webviewParams != null &&
- webviewParams!.onReceivedClientCertRequest != null) ||
+ webviewParams!.onReceivedClientCertRequest != null) ||
_inAppBrowserEventHandler != null) {
Map arguments =
- call.arguments.cast();
+ call.arguments.cast();
ClientCertChallenge challenge =
- ClientCertChallenge.fromMap(arguments)!;
+ ClientCertChallenge.fromMap(arguments)!;
if (webviewParams != null &&
webviewParams!.onReceivedClientCertRequest != null)
return (await webviewParams!.onReceivedClientCertRequest!(
- _controllerFromPlatform, challenge))
+ _controllerFromPlatform, challenge))
?.toMap();
else
return (await _inAppBrowserEventHandler!
- .onReceivedClientCertRequest(challenge))
+ .onReceivedClientCertRequest(challenge))
?.toMap();
}
break;
case "onFindResultReceived":
if ((webviewParams != null &&
- (webviewParams!.onFindResultReceived != null ||
- (webviewParams!.findInteractionController != null &&
- webviewParams!.findInteractionController!.params
- .onFindResultReceived !=
- null))) ||
+ (webviewParams!.onFindResultReceived != null ||
+ (webviewParams!.findInteractionController != null &&
+ webviewParams!.findInteractionController!.params
+ .onFindResultReceived !=
+ null))) ||
_inAppBrowserEventHandler != null) {
int activeMatchOrdinal = call.arguments["activeMatchOrdinal"];
int numberOfMatches = call.arguments["numberOfMatches"];
@@ -972,10 +969,10 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
if (webviewParams != null) {
if (webviewParams!.findInteractionController != null &&
webviewParams!.findInteractionController!.params
- .onFindResultReceived !=
+ .onFindResultReceived !=
null)
webviewParams!
- .findInteractionController!.params.onFindResultReceived!(
+ .findInteractionController!.params.onFindResultReceived!(
webviewParams!.findInteractionController!,
activeMatchOrdinal,
numberOfMatches,
@@ -986,7 +983,7 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
} else {
if (_inAppBrowser!.findInteractionController != null &&
_inAppBrowser!
- .findInteractionController!.onFindResultReceived !=
+ .findInteractionController!.onFindResultReceived !=
null)
_inAppBrowser!.findInteractionController!.onFindResultReceived!(
webviewParams!.findInteractionController!,
@@ -1001,41 +998,41 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
break;
case "onPermissionRequest":
if ((webviewParams != null &&
- (webviewParams!.onPermissionRequest != null ||
- // ignore: deprecated_member_use_from_same_package
- webviewParams!.androidOnPermissionRequest != null)) ||
+ (webviewParams!.onPermissionRequest != null ||
+ // ignore: deprecated_member_use_from_same_package
+ webviewParams!.androidOnPermissionRequest != null)) ||
_inAppBrowserEventHandler != null) {
String origin = call.arguments["origin"];
List resources = call.arguments["resources"].cast();
Map arguments =
- call.arguments.cast();
+ call.arguments.cast();
PermissionRequest permissionRequest =
- PermissionRequest.fromMap(arguments)!;
+ PermissionRequest.fromMap(arguments)!;
if (webviewParams != null) {
if (webviewParams!.onPermissionRequest != null)
return (await webviewParams!.onPermissionRequest!(
- _controllerFromPlatform, permissionRequest))
+ _controllerFromPlatform, permissionRequest))
?.toMap();
else {
return (await webviewParams!.androidOnPermissionRequest!(
- _controllerFromPlatform, origin, resources))
+ _controllerFromPlatform, origin, resources))
?.toMap();
}
} else {
return (await _inAppBrowserEventHandler!
- .onPermissionRequest(permissionRequest))
- ?.toMap() ??
+ .onPermissionRequest(permissionRequest))
+ ?.toMap() ??
(await _inAppBrowserEventHandler!
- .androidOnPermissionRequest(origin, resources))
+ .androidOnPermissionRequest(origin, resources))
?.toMap();
}
}
break;
case "onUpdateVisitedHistory":
if ((webviewParams != null &&
- webviewParams!.onUpdateVisitedHistory != null) ||
+ webviewParams!.onUpdateVisitedHistory != null) ||
_inAppBrowserEventHandler != null) {
String? url = call.arguments["url"];
bool? isReload = call.arguments["isReload"];
@@ -1069,7 +1066,7 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
break;
case "onPageCommitVisible":
if ((webviewParams != null &&
- webviewParams!.onPageCommitVisible != null) ||
+ webviewParams!.onPageCommitVisible != null) ||
_inAppBrowserEventHandler != null) {
String? url = call.arguments["url"];
WebUri? uri = url != null ? WebUri(url) : null;
@@ -1083,23 +1080,23 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
case "onDidReceiveServerRedirectForProvisionalNavigation":
if (webviewParams != null &&
(webviewParams!
- .onDidReceiveServerRedirectForProvisionalNavigation !=
- null ||
+ .onDidReceiveServerRedirectForProvisionalNavigation !=
+ null ||
params
- .webviewParams!
- // ignore: deprecated_member_use_from_same_package
- .iosOnDidReceiveServerRedirectForProvisionalNavigation !=
+ .webviewParams!
+ // ignore: deprecated_member_use_from_same_package
+ .iosOnDidReceiveServerRedirectForProvisionalNavigation !=
null)) {
if (webviewParams!
- .onDidReceiveServerRedirectForProvisionalNavigation !=
+ .onDidReceiveServerRedirectForProvisionalNavigation !=
null)
webviewParams!.onDidReceiveServerRedirectForProvisionalNavigation!(
_controllerFromPlatform);
else {
params
- .webviewParams!
- // ignore: deprecated_member_use_from_same_package
- .iosOnDidReceiveServerRedirectForProvisionalNavigation!(
+ .webviewParams!
+ // ignore: deprecated_member_use_from_same_package
+ .iosOnDidReceiveServerRedirectForProvisionalNavigation!(
_controllerFromPlatform);
}
} else if (_inAppBrowserEventHandler != null) {
@@ -1111,82 +1108,82 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
break;
case "onNavigationResponse":
if ((webviewParams != null &&
- (webviewParams!.onNavigationResponse != null ||
- // ignore: deprecated_member_use_from_same_package
- webviewParams!.iosOnNavigationResponse != null)) ||
+ (webviewParams!.onNavigationResponse != null ||
+ // ignore: deprecated_member_use_from_same_package
+ webviewParams!.iosOnNavigationResponse != null)) ||
_inAppBrowserEventHandler != null) {
Map arguments =
- call.arguments.cast();
+ call.arguments.cast();
// ignore: deprecated_member_use_from_same_package
IOSWKNavigationResponse iosOnNavigationResponse =
- // ignore: deprecated_member_use_from_same_package
- IOSWKNavigationResponse.fromMap(arguments)!;
+ // ignore: deprecated_member_use_from_same_package
+ IOSWKNavigationResponse.fromMap(arguments)!;
NavigationResponse navigationResponse =
- NavigationResponse.fromMap(arguments)!;
+ NavigationResponse.fromMap(arguments)!;
if (webviewParams != null) {
if (webviewParams!.onNavigationResponse != null)
return (await webviewParams!.onNavigationResponse!(
- _controllerFromPlatform, navigationResponse))
+ _controllerFromPlatform, navigationResponse))
?.toNativeValue();
else {
// ignore: deprecated_member_use_from_same_package
return (await webviewParams!.iosOnNavigationResponse!(
- _controllerFromPlatform, iosOnNavigationResponse))
+ _controllerFromPlatform, iosOnNavigationResponse))
?.toNativeValue();
}
} else {
return (await _inAppBrowserEventHandler!
- .onNavigationResponse(navigationResponse))
- ?.toNativeValue() ??
+ .onNavigationResponse(navigationResponse))
+ ?.toNativeValue() ??
(await _inAppBrowserEventHandler!
- .iosOnNavigationResponse(iosOnNavigationResponse))
+ .iosOnNavigationResponse(iosOnNavigationResponse))
?.toNativeValue();
}
}
break;
case "shouldAllowDeprecatedTLS":
if ((webviewParams != null &&
- (webviewParams!.shouldAllowDeprecatedTLS != null ||
- // ignore: deprecated_member_use_from_same_package
- webviewParams!.iosShouldAllowDeprecatedTLS != null)) ||
+ (webviewParams!.shouldAllowDeprecatedTLS != null ||
+ // ignore: deprecated_member_use_from_same_package
+ webviewParams!.iosShouldAllowDeprecatedTLS != null)) ||
_inAppBrowserEventHandler != null) {
Map arguments =
- call.arguments.cast();
+ call.arguments.cast();
URLAuthenticationChallenge challenge =
- URLAuthenticationChallenge.fromMap(arguments)!;
+ URLAuthenticationChallenge.fromMap(arguments)!;
if (webviewParams != null) {
if (webviewParams!.shouldAllowDeprecatedTLS != null)
return (await webviewParams!.shouldAllowDeprecatedTLS!(
- _controllerFromPlatform, challenge))
+ _controllerFromPlatform, challenge))
?.toNativeValue();
else {
// ignore: deprecated_member_use_from_same_package
return (await webviewParams!.iosShouldAllowDeprecatedTLS!(
- _controllerFromPlatform, challenge))
+ _controllerFromPlatform, challenge))
?.toNativeValue();
}
} else {
return (await _inAppBrowserEventHandler!
- .shouldAllowDeprecatedTLS(challenge))
- ?.toNativeValue() ??
+ .shouldAllowDeprecatedTLS(challenge))
+ ?.toNativeValue() ??
// ignore: deprecated_member_use_from_same_package
(await _inAppBrowserEventHandler!
- .iosShouldAllowDeprecatedTLS(challenge))
+ .iosShouldAllowDeprecatedTLS(challenge))
?.toNativeValue();
}
}
break;
case "onLongPressHitTestResult":
if ((webviewParams != null &&
- webviewParams!.onLongPressHitTestResult != null) ||
+ webviewParams!.onLongPressHitTestResult != null) ||
_inAppBrowserEventHandler != null) {
Map arguments =
- call.arguments.cast();
+ call.arguments.cast();
InAppWebViewHitTestResult hitTestResult =
- InAppWebViewHitTestResult.fromMap(arguments)!;
+ InAppWebViewHitTestResult.fromMap(arguments)!;
if (webviewParams != null &&
webviewParams!.onLongPressHitTestResult != null)
@@ -1207,9 +1204,9 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
if (contextMenu != null && contextMenu.onCreateContextMenu != null) {
Map arguments =
- call.arguments.cast();
+ call.arguments.cast();
InAppWebViewHitTestResult hitTestResult =
- InAppWebViewHitTestResult.fromMap(arguments)!;
+ InAppWebViewHitTestResult.fromMap(arguments)!;
contextMenu.onCreateContextMenu!(hitTestResult);
}
@@ -1307,16 +1304,16 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
break;
case "onPrintRequest":
if ((webviewParams != null &&
- (webviewParams!.onPrintRequest != null ||
- // ignore: deprecated_member_use_from_same_package
- webviewParams!.onPrint != null)) ||
+ (webviewParams!.onPrintRequest != null ||
+ // ignore: deprecated_member_use_from_same_package
+ webviewParams!.onPrint != null)) ||
_inAppBrowserEventHandler != null) {
String? url = call.arguments["url"];
String? printJobId = call.arguments["printJobId"];
WebUri? uri = url != null ? WebUri(url) : null;
MacOSPrintJobController? printJob = printJobId != null
? MacOSPrintJobController(
- MacOSPrintJobControllerCreationParams(id: printJobId))
+ MacOSPrintJobControllerCreationParams(id: printJobId))
: null;
if (webviewParams != null) {
@@ -1354,12 +1351,12 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
break;
case "onCameraCaptureStateChanged":
if ((webviewParams != null &&
- webviewParams!.onCameraCaptureStateChanged != null) ||
+ webviewParams!.onCameraCaptureStateChanged != null) ||
_inAppBrowserEventHandler != null) {
var oldState =
- MediaCaptureState.fromNativeValue(call.arguments["oldState"]);
+ MediaCaptureState.fromNativeValue(call.arguments["oldState"]);
var newState =
- MediaCaptureState.fromNativeValue(call.arguments["newState"]);
+ MediaCaptureState.fromNativeValue(call.arguments["newState"]);
if (webviewParams != null &&
webviewParams!.onCameraCaptureStateChanged != null)
@@ -1372,12 +1369,12 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
break;
case "onMicrophoneCaptureStateChanged":
if ((webviewParams != null &&
- webviewParams!.onMicrophoneCaptureStateChanged != null) ||
+ webviewParams!.onMicrophoneCaptureStateChanged != null) ||
_inAppBrowserEventHandler != null) {
var oldState =
- MediaCaptureState.fromNativeValue(call.arguments["oldState"]);
+ MediaCaptureState.fromNativeValue(call.arguments["oldState"]);
var newState =
- MediaCaptureState.fromNativeValue(call.arguments["newState"]);
+ MediaCaptureState.fromNativeValue(call.arguments["newState"]);
if (webviewParams != null &&
webviewParams!.onMicrophoneCaptureStateChanged != null)
@@ -1390,7 +1387,7 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
break;
case "onContentSizeChanged":
if ((webviewParams != null &&
- webviewParams!.onContentSizeChanged != null) ||
+ webviewParams!.onContentSizeChanged != null) ||
_inAppBrowserEventHandler != null) {
var oldContentSize = MapSize.fromMap(
call.arguments["oldContentSize"]?.cast())!;
@@ -1416,7 +1413,7 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
switch (handlerName) {
case "onLoadResource":
if ((webviewParams != null &&
- webviewParams!.onLoadResource != null) ||
+ webviewParams!.onLoadResource != null) ||
_inAppBrowserEventHandler != null) {
Map arguments = args[0].cast();
arguments["startTime"] = arguments["startTime"] is int
@@ -1438,7 +1435,7 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
return null;
case "shouldInterceptAjaxRequest":
if ((webviewParams != null &&
- webviewParams!.shouldInterceptAjaxRequest != null) ||
+ webviewParams!.shouldInterceptAjaxRequest != null) ||
_inAppBrowserEventHandler != null) {
Map arguments = args[0].cast();
AjaxRequest request = AjaxRequest.fromMap(arguments)!;
@@ -1455,7 +1452,7 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
return null;
case "onAjaxReadyStateChange":
if ((webviewParams != null &&
- webviewParams!.onAjaxReadyStateChange != null) ||
+ webviewParams!.onAjaxReadyStateChange != null) ||
_inAppBrowserEventHandler != null) {
Map arguments = args[0].cast();
AjaxRequest request = AjaxRequest.fromMap(arguments)!;
@@ -1463,17 +1460,17 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
if (webviewParams != null &&
webviewParams!.onAjaxReadyStateChange != null)
return (await webviewParams!.onAjaxReadyStateChange!(
- _controllerFromPlatform, request))
+ _controllerFromPlatform, request))
?.toNativeValue();
else
return (await _inAppBrowserEventHandler!
- .onAjaxReadyStateChange(request))
+ .onAjaxReadyStateChange(request))
?.toNativeValue();
}
return null;
case "onAjaxProgress":
if ((webviewParams != null &&
- webviewParams!.onAjaxProgress != null) ||
+ webviewParams!.onAjaxProgress != null) ||
_inAppBrowserEventHandler != null) {
Map arguments = args[0].cast();
AjaxRequest request = AjaxRequest.fromMap(arguments)!;
@@ -1481,17 +1478,17 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
if (webviewParams != null &&
webviewParams!.onAjaxProgress != null)
return (await webviewParams!.onAjaxProgress!(
- _controllerFromPlatform, request))
+ _controllerFromPlatform, request))
?.toNativeValue();
else
return (await _inAppBrowserEventHandler!
- .onAjaxProgress(request))
+ .onAjaxProgress(request))
?.toNativeValue();
}
return null;
case "shouldInterceptFetchRequest":
if ((webviewParams != null &&
- webviewParams!.shouldInterceptFetchRequest != null) ||
+ webviewParams!.shouldInterceptFetchRequest != null) ||
_inAppBrowserEventHandler != null) {
Map arguments = args[0].cast();
FetchRequest request = FetchRequest.fromMap(arguments)!;
@@ -1600,7 +1597,7 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
HttpClient client = HttpClient();
var htmlRequest = await client.getUrl(webviewUrl);
html =
- await (await htmlRequest.close()).transform(Utf8Decoder()).join();
+ await (await htmlRequest.close()).transform(Utf8Decoder()).join();
} catch (e) {
developer.log(e.toString(), name: this.runtimeType.toString());
}
@@ -1669,8 +1666,8 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
manifestUrl = manifestUrl.substring(1);
}
manifestUrl = ((assetPathBase == null)
- ? webviewUrl.scheme + "://" + webviewUrl.host + "/"
- : assetPathBase) +
+ ? webviewUrl.scheme + "://" + webviewUrl.host + "/"
+ : assetPathBase) +
manifestUrl;
}
continue;
@@ -1748,16 +1745,16 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
urlIcon = urlIcon.substring(1);
}
urlIcon = ((assetPathBase == null)
- ? url.scheme + "://" + url.host + "/"
- : assetPathBase) +
+ ? url.scheme + "://" + url.host + "/"
+ : assetPathBase) +
urlIcon;
}
if (isManifest) {
rel = (sizes != null)
? urlSplitted[urlSplitted.length - 1]
- .replaceFirst("-" + sizes, "")
- .split(" ")[0]
- .split(".")[0]
+ .replaceFirst("-" + sizes, "")
+ .split(" ")[0]
+ .split(".")[0]
: null;
}
if (sizes != null && sizes.isNotEmpty && sizes != "any") {
@@ -1779,12 +1776,12 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
@override
Future loadUrl(
{required URLRequest urlRequest,
- @Deprecated('Use allowingReadAccessTo instead')
- Uri? iosAllowingReadAccessTo,
- WebUri? allowingReadAccessTo}) async {
+ @Deprecated('Use allowingReadAccessTo instead')
+ Uri? iosAllowingReadAccessTo,
+ WebUri? allowingReadAccessTo}) async {
assert(urlRequest.url != null && urlRequest.url.toString().isNotEmpty);
assert(
- allowingReadAccessTo == null || allowingReadAccessTo.isScheme("file"));
+ allowingReadAccessTo == null || allowingReadAccessTo.isScheme("file"));
assert(iosAllowingReadAccessTo == null ||
iosAllowingReadAccessTo.isScheme("file"));
@@ -1792,8 +1789,8 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
args.putIfAbsent('urlRequest', () => urlRequest.toMap());
args.putIfAbsent(
'allowingReadAccessTo',
- () =>
- allowingReadAccessTo?.toString() ??
+ () =>
+ allowingReadAccessTo?.toString() ??
iosAllowingReadAccessTo?.toString());
await channel?.invokeMethod('loadUrl', args);
}
@@ -1811,16 +1808,16 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
@override
Future loadData(
{required String data,
- String mimeType = "text/html",
- String encoding = "utf8",
- WebUri? baseUrl,
- @Deprecated('Use historyUrl instead') Uri? androidHistoryUrl,
- WebUri? historyUrl,
- @Deprecated('Use allowingReadAccessTo instead')
- Uri? iosAllowingReadAccessTo,
- WebUri? allowingReadAccessTo}) async {
+ String mimeType = "text/html",
+ String encoding = "utf8",
+ WebUri? baseUrl,
+ @Deprecated('Use historyUrl instead') Uri? androidHistoryUrl,
+ WebUri? historyUrl,
+ @Deprecated('Use allowingReadAccessTo instead')
+ Uri? iosAllowingReadAccessTo,
+ WebUri? allowingReadAccessTo}) async {
assert(
- allowingReadAccessTo == null || allowingReadAccessTo.isScheme("file"));
+ allowingReadAccessTo == null || allowingReadAccessTo.isScheme("file"));
assert(iosAllowingReadAccessTo == null ||
iosAllowingReadAccessTo.isScheme("file"));
@@ -1831,14 +1828,14 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
args.putIfAbsent('baseUrl', () => baseUrl?.toString() ?? "about:blank");
args.putIfAbsent(
'historyUrl',
- () =>
- historyUrl?.toString() ??
+ () =>
+ historyUrl?.toString() ??
androidHistoryUrl?.toString() ??
"about:blank");
args.putIfAbsent(
'allowingReadAccessTo',
- () =>
- allowingReadAccessTo?.toString() ??
+ () =>
+ allowingReadAccessTo?.toString() ??
iosAllowingReadAccessTo?.toString());
await channel?.invokeMethod('loadData', args);
}
@@ -1929,7 +1926,7 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
@override
Future injectJavascriptFileFromUrl(
{required WebUri urlFile,
- ScriptHtmlTagAttributes? scriptHtmlTagAttributes}) async {
+ ScriptHtmlTagAttributes? scriptHtmlTagAttributes}) async {
assert(urlFile.toString().isNotEmpty);
var id = scriptHtmlTagAttributes?.id;
if (scriptHtmlTagAttributes != null && id != null) {
@@ -1959,7 +1956,7 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
@override
Future injectCSSFileFromUrl(
{required WebUri urlFile,
- CSSLinkHtmlTagAttributes? cssLinkHtmlTagAttributes}) async {
+ CSSLinkHtmlTagAttributes? cssLinkHtmlTagAttributes}) async {
assert(urlFile.toString().isNotEmpty);
Map args = {};
args.putIfAbsent('urlFile', () => urlFile.toString());
@@ -1977,9 +1974,9 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
@override
void addJavaScriptHandler(
{required String handlerName,
- required JavaScriptHandlerCallback callback}) {
+ required JavaScriptHandlerCallback callback}) {
assert(!_JAVASCRIPT_HANDLER_FORBIDDEN_NAMES.contains(handlerName),
- '"$handlerName" is a forbidden name!');
+ '"$handlerName" is a forbidden name!');
this._javaScriptHandlersMap[handlerName] = (callback);
}
@@ -2038,7 +2035,7 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
Map args = {};
Map? settings =
- await channel?.invokeMethod('getSettings', args);
+ await channel?.invokeMethod('getSettings', args);
if (settings != null) {
settings = settings.cast();
return InAppWebViewSettings.fromMap(settings as Map);
@@ -2051,8 +2048,8 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
Future getCopyBackForwardList() async {
Map args = {};
Map? result =
- (await channel?.invokeMethod('getCopyBackForwardList', args))
- ?.cast();
+ (await channel?.invokeMethod('getCopyBackForwardList', args))
+ ?.cast();
return WebHistory.fromMap(result);
}
@@ -2135,7 +2132,7 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
Map args = {};
args.putIfAbsent("settings", () => settings?.toMap());
String? jobId =
- await channel?.invokeMethod('printCurrentPage', args);
+ await channel?.invokeMethod('printCurrentPage', args);
if (jobId != null) {
return MacOSPrintJobController(
PlatformPrintJobControllerCreationParams(id: jobId));
@@ -2176,8 +2173,8 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
@override
Future zoomBy(
{required double zoomFactor,
- @Deprecated('Use animated instead') bool? iosAnimated,
- bool animated = false}) async {
+ @Deprecated('Use animated instead') bool? iosAnimated,
+ bool animated = false}) async {
Map args = {};
args.putIfAbsent('zoomFactor', () => zoomFactor);
args.putIfAbsent('animated', () => iosAnimated ?? animated);
@@ -2208,7 +2205,7 @@ class MacOSInAppWebViewController extends PlatformInAppWebViewController
List metaTags = [];
List