WebViewController(onPermissionRequest)
.NavigationDelegate(onUrlChange)
.WebViewController
and WebViewCookieManager
.WebView.initialCookies
and Hybrid Composition on Android.use_build_context_synchronously
lint.WebResourceErrorType
from platform interface.2.0.0
release of webview_flutter_platform_interface
. See Usage
section in the README for updated usage. See Migrating from 3.0 to 4.0
section in the README for details on migrating to this version.Scaffold.showSnackBar
to ScaffoldMessenger
in example app.WebView.platform = AndroidWebView()
loadFlutterAsset
method.setCookie
to CookieManager.initialCookies
.loadRequest
method.loadFile
and loadHtmlString
methods.JavascriptMode.unrestricted
in order to set zoomEnabled: false
.runJavascript
and runJavascriptForResult
to supersede evaluateJavascript
.evaluateJavascript
._CastError
that was thrown when running the example App.onWebResourceError
is now only called for the main page.uiMode
, so the WebView isn't reattached when the UI mode changes. (e.g. switching to Dark mode).allowsInlineMediaPlayback
is not respected on iOS.evaluateJavascript
.onWebResourceError
on iOS.allowsInlineMediaPlayback
property.deprecated_member_use
warning in the example app for ScaffoldMessenger.showSnackBar
.WebViewPlatformCreatedCallback
.Bumped the minimal Flutter SDK to 1.22 where platform views are out of developer preview, and performing better on iOS. Flutter 1.22 no longer requires adding the io.flutter.embedded_views_preview
flag to Info.plist
.
Added support for Hybrid Composition on Android (see opt-in instructions in README)
setAndGetScrollPosition
to use hard coded values and add a pumpAndSettle
call.WebView.onWebResourceError
.getFlutterEngine
call on Android.author:
field from pubspec.yamluserAgent
property to set a custom User Agent.@available
block.androidx.annotation:annotation:1.0.0
.TextInput
and WebView text fields.TextInput
fields is still pending. This basic support currently only works with Flutter master
. The keyboard will still appear when it previously did not when run with older versions of Flutter. But if the WebView is resized while showing the keyboard the text field will need to be focused multiple times for any input to be registered.invokeMethod
calls.debuggingEnabled
property.headers
field to the controller.javascriptChannels
.StatefulWidget
.NavigationDelegate
on later versions of Android.JavaScriptMode
enum to JavascriptMode
, and the WebView javasScriptMode
parameter to javascriptMode
.currentUrl
accessor for the WebView controller to look up what URL is being displayed.