slint library

Core abstractions for embedding the Slint UI toolkit in Flutter.

Backend-agnostic: slint_interpreter (software renderer) and slint_skia (Skia/GPU renderer) provide the implementations.

Classes

SlintComponent
A live component instance.
SlintComponentDefinition
A compiled, instantiable component.
SlintEngine
Compiles .slint source into component definitions.
SlintInspectableComponent
A live instance whose accessibility tree can be inspected.
SlintKeyEvent
SlintPointerEvent
SlintRenderTarget
A component instance bound to a renderable surface.
SlintSoftwareComponent
A live instance that renders through a software target — satisfied by both the interpreter instances (slint_interpreter) and the AOT-compiled ones (slint_compiler).
SlintSoftwareRenderTarget
Software-rendered target exposing the frame as premultiplied RGBA8888 pixels (slint_interpreter).
SlintTextureRenderTarget
GPU-rendered target exposing a Flutter external-texture id (slint_skia).
SlintView
A Flutter widget that displays a software-rendered Slint component with pointer and keyboard input handling.

Enums

SlintPointerButton
SlintPointerEventKind
Input events forwarded from Flutter into a Slint scene.

Functions

editsBetween(String before, String after) List<String>
Key texts that turn before into after when replayed into Slint at the end of its text: one backspace per removed character, then the inserted text. Exposed for tests.

Typedefs

SlintCallbackHandler = Object? Function(List<Object?> arguments)
SlintComponentLoader = Future<SlintSoftwareComponent> Function(String path, String? component)
Reads a .slint asset and instantiates a component from it, for SlintComponent.loadAsset. Implemented by backends that compile at runtime.