This repository contains code to fix an error in which a white block appears at the top of the page in WebView on devices with iOS > 17 when switching from one widget to another
Go to file
Lorenzo Pichilli c81cfc964c added disposable internal class, fixed some docs 2022-05-13 09:35:50 +02:00
.github updated no-response.yml 2022-04-28 17:58:47 +02:00
.gradle fixed android zoom, added new ios webview options, added 2020-05-09 04:36:07 +02:00
android added PrintJobController to manage print jobs 2022-05-12 00:19:43 +02:00
example added disposable internal class, fixed some docs 2022-05-13 09:35:50 +02:00
ios added PrintJobController to manage print jobs 2022-05-12 00:19:43 +02:00
lib added disposable internal class, fixed some docs 2022-05-13 09:35:50 +02:00
scripts fixed tests, added android webview EventChannelDelegate, fixed some enum native values based on target platform 2022-05-04 02:17:33 +02:00
test_node_server updated tests 2022-05-02 12:52:10 +02:00
tool fixed web support, updated tests 2022-04-30 21:22:31 +02:00
.gitignore updated web support 2022-04-27 16:59:49 +02:00
.metadata added initial web support 2022-04-21 23:14:51 +02:00
CHANGELOG.md added PrintJobController to manage print jobs 2022-05-12 00:19:43 +02:00
LICENSE Update LICENSE 2020-07-07 12:42:48 +02:00
README.md merged web support, dartfmt 2022-04-25 23:21:26 +02:00
analysis_options.yaml added initial web support 2022-04-21 23:14:51 +02:00
flutter_inappwebview.iml Added singleInstance option for Android ChromeSafariBrowser implementation, updated android compileSdkVersion to 31 2022-04-15 23:18:54 +02:00
flutter_inappwebview_android.iml fixed android zoom, added new ios webview options, added 2020-05-09 04:36:07 +02:00
pubspec.yaml updated tests 2022-05-02 12:52:10 +02:00

README.md

Flutter InAppWebView Plugin Share on Twitter Share on Facebook

Pub pub points popularity likes Awesome Flutter License

Donate to this project GitHub contributors GitHub forks GitHub stars

InAppWebView-logo

A Flutter plugin that allows you to add an inline webview, to use an headless webview, and to open an in-app browser window.

Articles/Resources

Showcase - Who use it

Check the 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 page!

Requirements

  • Dart sdk: ">=2.14.0 <3.0.0"
  • Flutter: ">=2.5.0"
  • Android: minSdkVersion 17 and add support for androidx (see AndroidX Migration to migrate an existing app)
  • iOS: --ios-language swift, Xcode version >= 12

Installation

Add flutter_inappwebview as a dependency in your pubspec.yaml file.

Installation - Web support

To make it work properly on the Web platformm, you need to add the web_support.js file inside the <head> of your web/index.html file:

<head>
    <!-- ... -->
    <script src="/packages/flutter_inappwebview/assets/web/web_support.js" defer></script>
    <!-- ... -->
</head>

Main Classes Overview

  • InAppWebView: Flutter Widget for adding an inline native WebView integrated into the flutter widget tree.
  • ContextMenu: This class represents the WebView context menu.
  • HeadlessInAppWebView: Class that represents a WebView in headless mode. It can be used to run a WebView in background without attaching an InAppWebView to the widget tree.
  • InAppBrowser: In-App Browser using native WebView.
  • ChromeSafariBrowser: In-App Browser using Chrome Custom Tabs on Android / SFSafariViewController on iOS.
  • InAppLocalhostServer: This class allows you to create a simple server on http://localhost:[port]/. The default port value is 8080.
  • CookieManager: This class implements a singleton object (shared instance) which manages the cookies used by WebView instances.
  • HttpAuthCredentialDatabase: This class implements a singleton object (shared instance) that manages the shared HTTP auth credentials cache.
  • WebStorageManager: This class implements a singleton object (shared instance) which manages the web storage used by WebView instances.

Support

Did you find this plugin useful? Please consider to make a donation to help improve it!