Full Chromium rendering inside the Flutter widget tree.
Desktop Flutter applications frequently hit a wall when embedding modern web content: legacy OS webview wrappers vary wildly across Windows, macOS, and Linux, struggle with texture composition, or lack deterministic browser event lifecycles.
Built by DevFlier to power PPPlayer's embedded web and media pipeline, flutter_chromium_webview embeds a pinned Chromium 149 runtime via the Chromium Embedded Framework (CEF) on desktop using Off-Screen Rendering (OSR) directly into Flutter textures, paired with system Chromium WebView Hybrid Composition on Android.
Because desktop web views render into Flutter Texture objects, developers can clip, transform, animate, and overlay Flutter UI seamlessly on top of live web content—complete with origin-restricted JavaScript channels, named storage profiles, YouTube playback diagnostics, and renderer crash recovery.
Drop-in installation and Dart API.
Published as flutter_chromium_webview on pub.dev (v0.5.5, published Oct 16, 2026) with 150 / 160 pub points.
dependencies:
flutter_chromium_webview: ^0.5.5final cache = await getApplicationSupportDirectory();
final initialized = await ChromiumWebViewController.initialize(
cachePath: cache.path,
keychainBehavior: ChromiumKeychainBehavior.mock,
);
ChromiumWebView(
controller: controller,
initialUrl: 'https://flutter.dev',
);Engineered for native texture parity.
A layered C++, Objective-C++, Kotlin, and Dart architecture bridging Chromium subprocesses cleanly into Flutter's compositor.
Off-Screen Rendering & Metal IOSurface
On macOS 13+ (Apple Silicon and Intel), CEF frames arrive as IOSurface handles bound directly to Metal textures with a bounded cache (one source, three destinations) and drained autorelease pools. Windows x64 and Linux GTK3 copy pixel buffers directly into Flutter's texture registry.
Origin-Restricted JavaScript Channels
Two-way communication enforces explicit HTTP(S) origin allowlists per channel name, paired with JSON-parsed evaluateJavaScript calls, operation cancellation tokens, and executeJavaScript helpers.
Renderer & GPU Crash Recovery
Native browser-crash notifications propagate through onBrowserCrashed on the event stream, allowing hosts to recreate the browser session deterministically without crashing the Flutter shell.
Media Controls & YouTube Integration
Includes ChromiumYoutubePlayerController with video playback quality telemetry, Android autoplay preservation when minimized, and CEF_SYSTEM_MEDIA_CONTROLS=0 coordination on macOS hosts with native media sessions.
Platform Backends & Capabilities
- macOS 13+ (arm64 & x86_64 via Metal)
- Windows 10+ (x64, sandboxed bootstrap)
- Linux (x64, X11 / XWayland via GTK3)
- Android API 24+ (ARM64, ARM32, x86_64)
- Wasm-compatible Dart surface
- ChromiumWebView & ChromiumWebViewController
- ChromiumYoutubePlayerController
- JavaScriptChannel & JavaScriptMessage
- NewWindowRequest & JSDialogRequest
- ContextMenuRequest & ContextMenuItem
- Multiple simultaneous browser instances
- Isolated named storage & cookie profiles
- Custom Flutter-rendered alert/confirm/prompt
- Depends on platform_interface ^0.1.7
- Open codecs (VP8, VP9, AV1, Opus, Vorbis)