Skip to content
pubscout

irondash_engine_context

0.5.5, released a year ago by irondash.dev

Provides Dart access to Flutter engine components for native/FFI code.

WASM-ready
$ flutter pub add irondash_engine_context
Source repository

What it does

The plugin lets you obtain the engine handle, FlutterView, texture registry, JavaVM and class loader from Dart. This information can be passed to native code (e.g., Rust) to interact with the Flutter engine.

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

Use it when

  • You need to call native code (FFI) that requires Flutter engine objects like the view or texture registry.
  • Your plugin or app runs on multiple platforms and must access engine internals from native side.

Skip it when

  • Your app is pure Dart/Flutter with no native integration needed.
  • You only need high‑level Flutter APIs; this low‑level access adds unnecessary complexity.

Strengths

  • Simple API to retrieve engine handles and registrars.
  • Supports Android, iOS, Windows, macOS, and Linux.
  • Designed for Rust/FFI integration.

Weaknesses

  • Limited to engine context; no other utilities provided.
  • Requires native code knowledge to use effectively.

Setup

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

Add the plugin to pubspec, run flutter pub get, and ensure native build scripts link against the provided binaries. No special permissions required.

import 'package:irondash_engine_context/irondash_engine_context.dart';

final handle = await EngineContext.instance.getEngineHandle();
nativeMethod(handle);

Alternatives

Packages that do the same job and could replace irondash_engine_context.

  • jni

    Provides Dart/Flutter bindings to call native Java code via JNI.

  • flutter_olm

    Builds the native Olm library for Android and iOS to be used via dart:ffi.

Works with

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