webview_win_floating
3.0.3, released 6 months ago by an unverified publisher
Desktop WebView plugin for Windows and Linux implementing the webview_flutter interface.
What it does
Provides native WebView rendering on Windows and Linux using the webview_flutter API. It places a native WebView directly on top of the Flutter window for high-performance video playback and scrolling.
AI-written summary of version 3.0.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need native WebView rendering on Windows or Linux.
- You want to reuse familiar webview_flutter API code for desktop platforms.
- You need smooth video playback and high-performance scrolling inside a desktop WebView.
Skip it when
- You need Flutter widgets to render above the WebView.
- You need to push a new route above the WebView.
- You require automatic clipping of the WebView inside scrollable widgets without manual handling.
Strengths
- Reuses the webview_flutter API interface for desktop platforms.
- Native WebView rendering provides high-performance video playback and scrolling on Windows and Linux.
- Supports custom user data folders and isolated profiles (Windows only).
Weaknesses
- Flutter widgets cannot render above the WebView because it places a native view directly on top.
- Cannot push a new route above the WebView.
- Flutter cannot clip the WebView, so it may remain visible outside its parent area.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Add webview_win_floating and webview_flutter to pubspec.yaml. Linux platform may require build-time considerations documented in README_Linux.md.
final controller = WebViewController();
@override
void initState() {
super.initState();
controller.setJavaScriptMode(JavaScriptMode.unrestricted);
controller.loadRequest(Uri.parse("https://www.google.com/"));
}
@override
Widget build(BuildContext context) {
return WebViewWidget(controller: controller);
}Alternatives
Packages that do the same job and could replace webview_win_floating.
- webview_flutter_android
Android implementation of the webview_flutter plugin providing a WebView widget.
84Compare - webview_flutter_web
WebView widget implementation for Flutter web.
50Compare - webview_flutter_wkwebview
A Flutter plugin providing a WebView widget based on Apple's WKWebView control.
88Compare - webview_all
A cross-platform WebView plugin for Android, iOS, macOS, Windows, Linux, Web, and OpenHarmony.
87Compare
Works with
Packages commonly used together with webview_win_floating: ones it builds on, ones built on it, and its own family.