← Selected work
BROWSER ENGINE / PUB.DEV / PACKAGE STUDY
flutter_chromium_webview

Embedded Chromium rendering for desktop and Android Flutter apps.

Chromium webview plugin for Windows, macOS, and Linux using CEF off-screen rendering into Flutter textures, and Android using system WebView, with origin-restricted channels and crash recovery.

FlutterCEF / Chromium 149Metalpub.dev v0.5.5MIT

Published Dart & Flutter package architecture. Verified source, API documentation, and releases on pub.dev.

PACKAGE ENGINEERING

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.

PUB.DEV VERSION0.5.5
PUB POINTS150 / 160
DESKTOP ENGINECEF 149 (Chromium 149)
SUPPORTED OSmacOS, Windows, Linux, Android
DART / FLUTTER>=3.12.0 / >=3.44.0
MACOS RENDER PATHMetal IOSurface Texture
KEYCHAIN CONTROLMock / System Configurable
LICENSEMIT (CEF BSD-style)
QUICK START & INTEGRATION

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.

ChromiumWebViewController — Runtime Init & Widget EmbedDART / FLUTTER
pubspec.yaml
dependencies:
  flutter_chromium_webview: ^0.5.5
lib/main.dart
final cache = await getApplicationSupportDirectory();
final initialized = await ChromiumWebViewController.initialize(
  cachePath: cache.path,
  keychainBehavior: ChromiumKeychainBehavior.mock,
);

ChromiumWebView(
  controller: controller,
  initialUrl: 'https://flutter.dev',
);
01. Unified Multi-Platform Initialization. Initialize the CEF runtime once per process with a writable cache directory and optional macOS keychain behavior, then mount multiple independent ChromiumWebView widgets anywhere in the widget tree.
TECHNICAL ARCHITECTURE

Engineered for native texture parity.

A layered C++, Objective-C++, Kotlin, and Dart architecture bridging Chromium subprocesses cleanly into Flutter's compositor.

01

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.

02

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.

03

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.

04

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.

COMPATIBILITY & API SURFACE

Platform Backends & Capabilities

CEF 149 + ANDROID WEBVIEW
SUPPORTED PLATFORMS
  • 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
CORE API SYMBOLS
  • ChromiumWebView & ChromiumWebViewController
  • ChromiumYoutubePlayerController
  • JavaScriptChannel & JavaScriptMessage
  • NewWindowRequest & JSDialogRequest
  • ContextMenuRequest & ContextMenuItem
ENGINEERING GUARANTEES
  • 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)
OPEN SOURCE & VERIFIED PUBLISHER

Maintained under devflier.com.

flutter_chromium_webview is open source under the MIT License (with Chromium/CEF under their respective BSD-style licenses). Explore the repository, report issues, or inspect releases on pub.dev.

EXPLORE PACKAGEflutter_chromium_webview_platform_interfaceEXPLORE PACKAGEflutter_media_kitEXPLORE PACKAGEflutter_story_encoderEXPLORE PACKAGEbr_code_pix
LET’S BUILD WHAT’S NEXTIDEA → PRODUCTION

Have something
worth building?

Tell us what you’re working on.

Start a conversation

New product · Existing platform · Engineering partnership · Technical challenge