ironbird_engine_context 0.1.1+1 copy "ironbird_engine_context: ^0.1.1+1" to clipboard
ironbird_engine_context: ^0.1.1+1 copied to clipboard

discontinued

Easy access to FlutterView, FlutterBinaryMessenger and FlutterTextureRegistry for FFI.

ironbird_engine_context #

Flutter plugin that provides access to Flutter engine components (like view or texture registrar) from native code.

Example #

Dart code:

    final handle = await EngineContext.instance.getEngineHandle();
    // pass the handle native code (i.e. through FFI).
    nativeMethod(handle);

Rust code:

    let context = EngineContext::new();
    let flutter_view = context.get_flutter_view(handle);
    let texture_registry = contet.get_texture_registry(handle);

On Android the dylib containing Rust code must be loaded through System.loadLibrary before loading it from Dart code.

System.loadLibrary must be called on main thread.

1
likes
140
pub points
4%
popularity

Publisher

verified publishernativeshell.dev

Easy access to FlutterView, FlutterBinaryMessenger and FlutterTextureRegistry for FFI.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on ironbird_engine_context