WebView All
A WebView component for all Flutter platforms, compatible with the webview_flutter API.
| Platform | Support | Implementation |
|---|---|---|
| Android | API 24+ | WebView |
| iOS | 13.0+ | WKWebView |
| macOS | 10.15+ | WKWebView |
| Windows | Win10 1809+ | WebView2 |
| Linux | webkit2gtk-4.1 | WebKitGTK |
| OHOS | API 22+ | ArkWeb |
| Web | Any | js-interop |
Features
- Comprehensive support for all platforms
- Full compatibility with the
webview_flutterAPI - Additional features:
- Promise-aware asynchronous JavaScript calls
- Custom JavaScript injection before page scripts execute
- Desktop download controls and Windows debugging and shortcut settings
- Richer Web interactions and iframe configuration
- Website data cleanup without a controller
- Offscreen WebView sessions that can be explicitly closed
Quick Start
- Instantiate a
WebViewController:
controller = WebViewController()
..setJavaScriptMode(JavaScriptMode.unrestricted)
..loadRequest(Uri.parse('https://flutter.dev'));
- Pass
controllertoWebViewWidget:
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Flutter Simple Example')),
body: WebViewWidget(controller: controller),
);
}
For detailed usage, API coverage, and platform limits, see the Documentation.
Who's Using It?
- Wildfire IM official Flutter client: A well-established commercial IM/RTC platform.
- Miru new official client: A popular video, manga, and novel aggregation app.
- GodotHub official client: A much-loved Godot community platform.
- Operit2: An AI agent for all platforms.
- Dartotsu: A cross-platform anime, manga, and novel tracking client.
- Bili-music: A cross-platform music player for Bilibili.
- ShonenX: Discover anime, track your progress, and stream, all in one app.
- AFAN: An anime app with video slicing, web media detection, and custom playback sources.