Skip to content
pubscout

webview_flutter_web

0.2.3+4, released 2 years ago by flutter.dev

WebView widget implementation for Flutter web.

WASM-readyQuiet but busy
$ flutter pub add webview_flutter_web
Source repository

What it does

Provides a WebView widget for Flutter apps running on the web. Currently only supports loading a URL via loadRequest and loading raw HTML via loadHtmlString. It mirrors part of the webview_flutter API for web platforms.

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

Use it when

  • You need to embed web content in a Flutter web app using the familiar webview_flutter API.
  • You want a simple way to display external pages or HTML strings on web without native plugins.

Skip it when

  • You require full WebView features like JavaScript channels, navigation controls, or file uploads.
  • You need a production‑ready, feature‑complete webview solution.

Strengths

  • Shares API with the main webview_flutter plugin, easing code sharing across platforms.
  • Works out‑of‑the‑box on web with minimal native code.

Weaknesses

  • Limited to loadRequest and loadHtmlString; many features are missing.
  • May not be suitable for complex web interactions.

Setup

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

Add both webview_flutter and webview_flutter_web as dependencies; the web package requires extra setup as described in its README.

import 'package:webview_flutter/webview_flutter.dart';

WebView(
  initialUrl: 'https://flutter.dev',
);

Alternatives

Packages that do the same job and could replace webview_flutter_web.

Works with

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