webview_flutter_web
0.2.3+4, released 2 years ago by flutter.dev
WebView widget implementation for Flutter web.
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.
- webview_all
A cross-platform WebView plugin for Android, iOS, macOS, Windows, Linux, Web, and OpenHarmony.
87Compare - zikzak_inappwebview
A Flutter plugin providing inline WebView, headless WebView, and in-app browser features.
80Compare - webview_flutter_plus
Extension of webview_flutter to load local HTML, CSS, and JS from assets or strings via a local server.
79Compare - webview_win_floating
Desktop WebView plugin for Windows and Linux implementing the webview_flutter interface.
56Compare
Works with
Packages commonly used together with webview_flutter_web: ones it builds on, ones built on it, and its own family.
- webwebview_flutter_web depends on itLightweight bindings for browser APIs via JS interop
- webview_flutter_wkwebviewSame familyA Flutter plugin providing a WebView widget based on Apple's WKWebView control.
- webview_flutter_androidSame familyAndroid implementation of the webview_flutter plugin providing a WebView widget.
- webview_flutterSame familyFlutter plugin that embeds a native WebView widget.