Skip to content
pubscout

webview_flutter_android

4.14.1, released 3 months ago by flutter.dev

Android implementation of the webview_flutter plugin providing a WebView widget.

$ flutter pub add webview_flutter_android
Source repository

What it does

A Flutter plugin that provides a WebView widget specifically for Android. It supports features like Payment Request API, Web Authentication, geolocation prompts, and custom fullscreen video widgets.

AI-written summary of version 4.14.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to embed web content inside your Flutter application on Android.
  • You need access to Android-specific webview configurations like WebAuthn or Payment Request API.

Skip it when

  • You are building a cross-platform application where platform-specific Android API calls are unnecessary and you should use webview_flutter instead.
  • You want a pure web app without native mobile wrappers.

Strengths

  • Endorsed federated plugin which automatically integrates when using webview_flutter.
  • Provides fine-grained Android-specific APIs such as Web Authentication and custom widget callbacks.

Weaknesses

  • Platform-specific to Android, requiring other implementations for iOS or desktop.
  • Performance trade-offs between Hybrid Composition and Texture Layer display modes.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
2

Automatically included when using webview_flutter. Add intent filters in AndroidManifest.xml if using Payment Request features.

final bool paymentRequestEnabled = await androidController.isWebViewFeatureSupported(
  WebViewFeatureType.paymentRequest,
);

if (paymentRequestEnabled) {
  await androidController.setPaymentRequestEnabled(true);
}

Alternatives

Packages that do the same job and could replace webview_flutter_android.

Works with

Packages commonly used together with webview_flutter_android: ones it builds on, ones built on it, and its own family.