Skip to content
pubscout

webview_flutter

4.14.1, released 4 months ago by flutter.dev

Flutter plugin that embeds a native WebView widget.

WASM-readyRock solid
$ flutter pub add webview_flutter
Source repository

What it does

Provides a WebView widget backed by the platform’s native webview. It exposes a controller for navigation, JavaScript, and platform‑specific features.

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

Use it when

  • Need to display web content inside a Flutter app
  • Require full control over navigation and JavaScript execution
  • Need platform‑specific features like custom headers or media playback

Skip it when

  • You only need a simple static web page
  • You prefer a pure Dart webview implementation

Strengths

  • Native performance and full feature set
  • Supports Android, iOS, macOS
  • Rich controller API for navigation, cookies, and JavaScript

Weaknesses

  • Requires platform implementation packages
  • Android SDK 24+ only
  • No support for web platform

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
3

Add webview_flutter, webview_flutter_android, and webview_flutter_wkwebview to pubspec. Import platform packages for Android/iOS/macOS features. No build_runner needed.

```dart
final controller = WebViewController()
  ..setJavaScriptMode(JavaScriptMode.unrestricted)
  ..loadRequest(Uri.parse('https://flutter.dev'));

@override
Widget build(BuildContext context) {
  return Scaffold(
    appBar: AppBar(title: const Text('WebView')),
    body: WebViewWidget(controller: controller),
  );
}
```

Alternatives

Packages that do the same job and could replace webview_flutter.

Works with

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