SurfaceAndroidWebView class

Android WebViewPlatform that uses AndroidViewSurface to build the WebView widget.

To use this, set WebView.platform to an instance of this class.

This implementation uses hybrid composition to render the WebView on Android. It solves multiple issues related to accessibility and interaction with the WebView at the cost of some performance on Android versions below 10. See https://github.com/flutter/flutter/wiki/Hybrid-Composition for more information.

Inheritance

Constructors

SurfaceAndroidWebView()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build({required BuildContext context, required CreationParams creationParams, required JavascriptChannelRegistry javascriptChannelRegistry, WebViewPlatformCreatedCallback? onWebViewPlatformCreated, Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers, required WebViewPlatformCallbacksHandler webViewPlatformCallbacksHandler}) Widget
Builds a new WebView.
override
clearCookies() Future<bool>
Clears all cookies for all WebView instances.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited