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
Max Zimmermann ab98855c8a
Update MyCookieManager.swift
Updated force unwrap
2023-05-31 10:15:04 +02:00
.github updated BUG_REPORT.md template 2022-11-09 10:15:29 +01:00
.gradle fixed android zoom, added new ios webview options, added 2020-05-09 04:36:07 +02:00
android fixed android InAppWebView and InAppBrowser dispose functions to correctly dispose resources 2023-05-20 13:03:03 +02:00
dev_packages Updated window.flutter_inappwebview.callHandler implementation: if there is an error/exception on Flutter/Dart side, the callHandler will reject the JavaScript promise with the error/exception message, so you can catch it also on JavaScript side, Fixed Android Web Storage Manager deleteAllData and deleteOrigin methods implementation, fix #1462, fix #1475 2023-05-15 13:46:42 +02:00
example Added InAppWebView keep alive feature, Added hasJavaScriptHandler, hasUserScript, hasWebMessageListener InAppWebViewController methods, HeadlessInAppWebView.webViewController could be null, Removed throwIfAlreadyOpened, throwIfNotOpened InAppBrowser methods, Removed throwIfAlreadyOpened, throwIfNotOpened ChromeSafariBrowser methods 2023-05-19 00:45:12 +02:00
ios Update MyCookieManager.swift 2023-05-31 10:15:04 +02:00
lib Added InAppWebView keep alive feature, Added hasJavaScriptHandler, hasUserScript, hasWebMessageListener InAppWebViewController methods, HeadlessInAppWebView.webViewController could be null, Removed throwIfAlreadyOpened, throwIfNotOpened InAppBrowser methods, Removed throwIfAlreadyOpened, throwIfNotOpened ChromeSafariBrowser methods 2023-05-19 00:45:12 +02:00
macos Added InAppWebView keep alive feature, Added hasJavaScriptHandler, hasUserScript, hasWebMessageListener InAppWebViewController methods, HeadlessInAppWebView.webViewController could be null, Removed throwIfAlreadyOpened, throwIfNotOpened InAppBrowser methods, Removed throwIfAlreadyOpened, throwIfNotOpened ChromeSafariBrowser methods 2023-05-19 00:45:12 +02:00
scripts Added startAnimations, exitAnimations, navigationBarColor, navigationBarDividerColor, secondaryToolbarColor ChromeSafariBrowser settings for Android, Added getVariationsHeader WebView static method, All ChromeSafariBrowserSettings properties are optionals 2022-10-25 11:18:53 +02:00
test_node_server Added startAnimations, exitAnimations, navigationBarColor, navigationBarDividerColor, secondaryToolbarColor ChromeSafariBrowser settings for Android, Added getVariationsHeader WebView static method, All ChromeSafariBrowserSettings properties are optionals 2022-10-25 11:18:53 +02:00
tool fixed web support, updated tests 2022-04-30 21:22:31 +02:00
.all-contributorsrc update .all-contributorsrc 2023-05-16 08:48:33 +00:00
.gitignore updated web support 2022-04-27 16:59:49 +02:00
.metadata initial macos implementation 2022-10-17 02:23:05 +02:00
CHANGELOG.md Added InAppWebView keep alive feature, Added hasJavaScriptHandler, hasUserScript, hasWebMessageListener InAppWebViewController methods, HeadlessInAppWebView.webViewController could be null, Removed throwIfAlreadyOpened, throwIfNotOpened InAppBrowser methods, Removed throwIfAlreadyOpened, throwIfNotOpened ChromeSafariBrowser methods 2023-05-19 00:45:12 +02:00
LICENSE Fixed LICENSE 2022-10-04 13:15:11 +02:00
README.md fix #1640, fix #1632, Fixed InAppBrowser.show() possible crash on macOS, Fixed missing windowTitlebarSeparatorStyle, windowAlphaValue, windowStyleMask, windowFrame macOS settings updates when using setSettings() 2023-05-16 20:06:53 +02:00
analysis_options.yaml use flutter_lints as linter 2022-10-08 19:07:50 +02:00
build.yaml updated print job controller for macos 2022-10-18 11:44:08 +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
package.json run code format 2023-05-15 14:46:00 +02:00
pubspec.yaml updated version to 6.0.0-beta.24 2023-05-16 02:26:02 +02:00

README.md

Flutter InAppWebView Plugin Share on Twitter Share on Facebook

InAppWebView-logo

All Contributors

Pub Pub Points Pub Popularity Pub Likes Awesome Flutter License

Donate to this project GitHub forks GitHub stars

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.

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.15.0 <4.0.0"
  • Flutter: ">=3.0.0"
  • Android: minSdkVersion 19 and add support for androidx (see 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.

Installation - Web support

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

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

Support

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

Contributors

Thanks goes to these wonderful people (emoji key):

Alex Li
Alex Li

💻
1/2
1/2

💻
Christofer Bodin
Christofer Bodin

💻
Matthew Lloyd
Matthew Lloyd

💻
C E
C E

💻
Robson Araujo
Robson Araujo

💻
Ryan
Ryan

💻
CodeEagle
CodeEagle

💻
Tanay Neotia
Tanay Neotia

💻
Jamie Joost
Jamie Joost

💻
Matias de Andrea
Matias de Andrea

💻
YouCii
YouCii

💻
Salnikov Sergey
Salnikov Sergey

💻
Po-Jui Chen
Po-Jui Chen

💻
Manuito
Manuito

💻
setcy
setcy

💻
EArminjon
EArminjon

💻
Ashank Bharati
Ashank Bharati

💻
Michael Chow
Michael Chow

💻
Osvaldo Saez
Osvaldo Saez

💻
rsydor
rsydor

💻
Le Minh Hoang
Le Minh Hoang

💻
Michael Kao
Michael Kao

💻
cloudygeek
cloudygeek

💻
Christoph Eck
Christoph Eck

💻
Ser1ous
Ser1ous

💻
Caleb Jones
Caleb Jones

💻
Saverio Murgia
Saverio Murgia

💻
Trần Đức Tâm
Trần Đức Tâm

💻
Joker
Joker

💻
Yash Chandra Verma
Yash Chandra Verma

💻
Arne Kepp
Arne Kepp

💻
Ömral Cörüt
Ömral Cörüt

💻
LrdHelmchen
LrdHelmchen

💻
Steven Gunanto
Steven Gunanto

💻
Michael Rittmeister
Michael Rittmeister

💻
Akira Aratani
Akira Aratani

💻
Doflatango
Doflatango

💻
Edmund Tay
Edmund Tay

💻
Andrei Diaconu
Andrei Diaconu

💻
Daniel Kao
Daniel Kao

💻
xuty
xuty

💻
Ben Bieker
Ben Bieker

💻
Phạm Như Vũ
Phạm Như Vũ

💻
SebastienBtr
SebastienBtr

💻
NeZha
NeZha

💻
Jan Klinge
Jan Klinge

💻
PauloDurrerMelo
PauloDurrerMelo

💻
benmeemo
benmeemo

💻
cinos
cinos

💻
Rex Raphael
Rex Raphael

💻
Jan Henrik Høiland
Jan Henrik Høiland

💻
Iguchi Tomokatsu
Iguchi Tomokatsu

💻
Jonas Uekötter
Jonas Uekötter

📖
emakar
emakar

💻
liasica
liasica

💻
Eiichiro Adachi
Eiichiro Adachi

💻
Kamil Powałowski
Kamil Powałowski

💻
Akio Yamamoto
Akio Yamamoto

💻
mohenaxiba
mohenaxiba

💻
Ben Anderson
Ben Anderson

💻
Daan Poron
Daan Poron

🛡️
ふぁ
ふぁ

💻
perffecto
perffecto

💻
Chandra Abdul Fattah
Chandra Abdul Fattah

💻
Aleksandar Lugonja
Aleksandar Lugonja

💻
Alexandre Richonnier
Alexandre Richonnier

💻
Sunbreak
Sunbreak

💻
Eric Lee
Eric Lee

📖
KhatibFX
KhatibFX

💻
Guide.inc
Guide.inc

💻

This project follows the all-contributors specification. Contributions of any kind welcome!