Skip to main content

Crate flutter_plugin_sdk

Crate flutter_plugin_sdk 

Source
Expand description

Public, semantically versioned Rust API for Flutter Rust-shell plugins.

The SDK deliberately exposes no Flutter C++ or Impeller types. Those remain behind the private, lockstep engine bridge.

Modules§

gpu
GPU API types pinned to the version used by the Rust shell.

Structs§

GpuTextures
GPU texture creation capability exposed by the plugin registrar.
MainThreadDispatcher
Worker-safe handle for posting short operations to Flutter’s main thread.
PixelBufferTexture
Safe CPU producer handle backed by shell-owned pixel buffers.
PixelBufferTextureFrame
Exclusive reservation of one shell-owned CPU pixel buffer.
PluginRegistrar
The shell-owned registration context passed to every plugin.
TextureDescriptor
Size and format of an engine-owned GPU texture.
WgpuTexture
Safe producer handle for an engine-owned wgpu texture ring.
WgpuTextureFrame
Exclusive reservation of one engine-owned texture-ring slot.

Enums§

DispatchError
Error returned when work can no longer be posted to the main thread.
PluginError
Errors returned while registering a Rust-shell plugin.
TextureFormat
Pixel formats accepted by engine-owned GPU textures.

Constants§

PLUGIN_SDK_API_VERSION
The source compatibility version of this SDK.

Traits§

FlutterRustPlugin
A source-linked plugin compiled into the application’s Rust aggregate.

Type Aliases§

Result
A convenient result type for plugin registration.