← Selected work
PLATFORM CONTRACT / PUB.DEV / PACKAGE STUDY
flutter_chromium_webview_platform_interface

A federated Dart platform contract for Chromium webviews.

The common, token-verified platform interface defining browser lifecycle, navigation, pointer input, JavaScript evaluation, and crash-event contracts for flutter_chromium_webview.

DartPlatform InterfaceMethodChannelpub.dev v0.1.7MIT

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

PACKAGE ENGINEERING

A federated contract separating Dart models from native CEF engines.

Federated Flutter plugins succeed when the public platform contract stays stable, testable, and completely decoupled from heavy native build toolchains.

flutter_chromium_webview_platform_interface defines the canonical abstract interface, shared immutable value types, and default MethodChannel transport used by flutter_chromium_webview across all host operating systems.

Application developers depend on flutter_chromium_webview directly, while platform backend authors extend ChromiumWebViewPlatform with token verification—enabling pure-Dart mocking, deterministic contract tests, and non-breaking minor API evolution.

PUB.DEV VERSION0.1.7
PUB POINTS160 / 160
PLATFORM COVERAGEAll 6 Platforms (Pure Dart)
WASM READYYes (Dart 3 Compatible)
DART / FLUTTER>=3.12.0 / >=3.44.0
DEPENDENCYplugin_platform_interface ^2.0.2
DEFAULT TRANSPORTMethodChannelChromiumWebView
LICENSEMIT
QUICK START & INTEGRATION

Drop-in installation and Dart API.

Published as flutter_chromium_webview_platform_interface on pub.dev (v0.1.7, published Oct 16, 2026) with 160 / 160 pub points.

ChromiumWebViewPlatform — Token-Verified Extension ContractFEDERATED INTERFACE
pubspec.yaml
dependencies:
  flutter_chromium_webview_platform_interface: ^0.1.7
lib/main.dart
class MyCustomBackend extends ChromiumWebViewPlatform {
  @override
  Future<BrowserCreationResult> createBrowser(
    BrowserCreationParams params,
  ) async {
    // Custom platform implementation
  }
}

ChromiumWebViewPlatform.instance = MyCustomBackend();
01. Token-Verified Platform Extension. Implementations must extend ChromiumWebViewPlatform rather than implement it—enforced at runtime via PlatformInterface.verifyToken so newly added methods throw UnimplementedError instead of breaking existing backends.
TECHNICAL ARCHITECTURE

Clean separation across plugin layers.

Zero CEF, GTK, Win32, or Cocoa headers—just strongly typed Dart contracts, stream events, and method-channel serialization.

01

Token-Enforced PlatformInterface

ChromiumWebViewPlatform registers a private verification token through plugin_platform_interface. Assigning an incompatible instance immediately fails with an AssertionError, protecting downstream plugins across minor upgrades.

02

Async JS Evaluation & Cancellation

Publishes evaluateJavaScript with explicit operationId and timeoutMs parameters alongside cancelJavaScript, letting host controllers abort slow evaluations cleanly while preserving executeJavaScript.

03

Typed Input, Keychain & Profile Models

Exports immutable BrowserCreationParams (with profileName and origin-keyed javaScriptChannels), BrowserCreationResult (browserId, textureId, popupTextureId), PointerInput with clickCount, and ChromiumKeychainBehavior.

04

Crash-Aware Browser Event Stream

Exposes a broadcast Stream<BrowserEvent> forwarding navigation updates, dialog requests, context menus, and native renderer/GPU crash notifications through MethodChannelChromiumWebView.

CONTRACT SPECIFICATION

Exported Libraries, Types & Transport

160 / 160 PUB POINTS
EXPORTED MODULES
  • ChromiumWebViewPlatform abstract base
  • MethodChannelChromiumWebView transport
  • BrowserCreationParams & BrowserCreationResult
  • PointerInput & PointerInputType enum
  • BrowserEvent & ChromiumWebViewException
CONTRACT METHODS
  • initialize(cachePath, sessionId, keychainBehavior)
  • createBrowser & idempotent disposeBrowser
  • loadUrl, loadHtml, reload, goBack, goForward
  • resize, setFocus, sendPointerInput
  • closeJavaScriptDialog & closeContextMenu
COMPATIBILITY
  • Android, iOS, Windows, Linux, macOS, Web
  • Sound null-safe & Dart 3 compatible
  • Wasm-ready pure Dart interface
  • Includes runnable in-memory backend example
  • Required ^0.1.7 by flutter_chromium_webview 0.5.5
OPEN SOURCE & VERIFIED PUBLISHER

Maintained under devflier.com.

Part of the flutter_chromium_webview monorepo maintained by DevFlier under the MIT License. Inspect the contract source, runnable in-memory example, and changelog on GitHub or pub.dev.

EXPLORE PACKAGEflutter_media_kitEXPLORE PACKAGEflutter_story_encoderEXPLORE PACKAGEbr_code_pixEXPLORE PACKAGE@lucasveneno/trafficbot
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