desktop_webview_window
0.4.3, released 7 days ago by mixin.dev
Show a native webview window on your Flutter desktop application.
What it does
Opens web pages in native browser windows on macOS, Windows, and Linux. Provides JavaScript bridge communication, navigation controls, cookies management, and window customization.
AI-written summary of version 0.4.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display external web pages in native windows from a Flutter desktop app.
- You need a cross-platform desktop webview supporting Windows, macOS, and Linux.
Skip it when
- You need to embed a webview widget inline within your normal Flutter widget tree.
- You are targeting mobile or web platforms.
Strengths
- Native window performance and native title bars across Windows, macOS, and Linux.
- Built-in JavaScript bridge for bi-directional communication with web pages.
- Fine-grained navigation control and callbacks.
Weaknesses
- Requires platform-specific runtime dependencies (such as WebView2 on Windows and WebKitGTK on Linux).
- Does not support embedding the webview inline as a standard Flutter widget.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 1
Requires installing WebKitGTK and libsoup on Linux, and ensuring the WebView2 Runtime is available on Windows. macOS requires appropriate sandboxing entitlements.
import 'package:desktop_webview_window/desktop_webview_window.dart';
final webview = await WebviewWindow.create();
await webview.launch('https://example.com');Alternatives
Packages that do the same job and could replace desktop_webview_window.
- zikzak_inappwebview
A Flutter plugin providing inline WebView, headless WebView, and in-app browser features.
80Compare - webview_flutter_android
Android implementation of the webview_flutter plugin providing a WebView widget.
84Compare - webview_flutter_wkwebview
A Flutter plugin providing a WebView widget based on Apple's WKWebView control.
88Compare - pdfx
Flutter plugin to render & show PDF pages as images on Web, MacOS, Windows, Android and iOS.
88Compare
Works with
Packages commonly used together with desktop_webview_window: ones it builds on, ones built on it, and its own family.
- desktop_dropSame familyReceive dragged files, directories, text, and URLs into Flutter apps
- desktop_multi_windowSame familyCreate and manage multiple windows on desktop platforms in Flutter.
- desktop_lifecycleSame familyAllows Flutter desktop applications to perceive window activation state.
- crisp_chatBuilt on desktop_webview_windowFlutter plugin to embed Crisp live‑chat on Android, iOS, Web and desktop.