Skip to content
pubscout

desktop_webview_window

0.4.3, released 7 days ago by mixin.dev

Show a native webview window on your Flutter desktop application.

$ flutter pub add desktop_webview_window
Source repository

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.

Works with

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