Skip to content
pubscout

webview_windows

0.4.0, released 3 years ago by jns.io

A WebView2-powered webview implementation for the Windows platform.

WASM-readyQuiet but busy
$ flutter pub add webview_windows
Source repository

What it does

Provides a Flutter webview plugin for Windows built on Microsoft Edge WebView2. It renders web content off-screen and integrates it into Flutter apps using Windows graphics capture.

AI-written summary of version 0.4.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to display web content inside a Flutter application targeting Windows.
  • You require MS Edge WebView2 capabilities on Windows 10 (1809+) and above.

Skip it when

  • You are targeting platforms other than Windows, such as Android or iOS.
  • Your users are on older Windows versions that do not support the required runtime.

Strengths

  • Full-screen and high-DPI screen support on Windows.
  • Supports script execution, virtual hostname mapping, and multi-touch/trackpad scrolling.
  • Provides streams for loading state and web messages.

Weaknesses

  • Requires the external WebView2 Runtime to be installed on the user's system.
  • Older Windows versions are not supported due to relying on Windows.Graphics.Capture API.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
0

Requires Visual Studio 2019 or higher, Windows 11 SDK, and the WebView2 Runtime installed on target machines.

final controller = WebviewController();
await controller.initialize();
await controller.loadUrl('https://flutter.dev');

Alternatives

Packages that do the same job and could replace webview_windows.

Works with

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