appplayer_ui_view library

Read-only Flutter viewer for target-native UI outputs.

Classes

BezelConfig
DeviceFrame
Physical frame the UI is displayed inside. Hosts pick a preset or provide a custom size for embedded targets.
DeviceFrameRegistry
Registry of device frame presets. Hosts can replace the defaults or add custom frames (e.g. embedded 320x240) without touching preset code.
StatusStrip
One-line footer surfaced at the bottom of the viewer. Shows the watch state, source hint, relative freshness, source hash and issue count.
UiRuntimePort
Bridges a target UI runtime (Flutter, LVGL, Qt, …) to a Flutter widget.
UiRuntimeRegistry
Registry of installed UI runtimes keyed by id, with a secondary prefix index for target-based routing. Hosts register runtimes at boot or when a bundle that contributes one is activated.
UiTargetSnapshot
Scene-level snapshot passed to a runtime for rendering. Opaque data lets each runtime interpret its own native shape (MCP UI DSL JSON, LVGL widget tree, Qt QML, etc.) without ui_view having to know.
UiTargetUpdate
UiView
Read-only viewer for a single target. Wraps UiViewController with the device frame, viewport (zoom/pan), validation overlay and status strip.
UiViewAdapter
Data source port the host implements to feed the viewer.
UiViewController
Single source of truth for a viewer instance. Bridges adapter + viewport controller and exposes a reactive state stream for the widget layer.
UiViewControllerState
UiViewMulti
Renders several targets side-by-side, stacked or as tabs. Each target gets its own UiViewController owned by this widget; inactive tabs are paused so their runtimes stop re-rendering while still holding the watch subscription.
ValidationIssue
ValidationOverlay
Overlays issue markers above renderedWidget. Positions come from issue.at when provided; otherwise the overlay falls back to a compact bottom-anchored list so the user still sees which paths failed.
ViewportController
Manages the viewer's zoom/pan state. The widget layer binds gestures (InteractiveViewer, scroll wheel, trackpad) to these setters.
ViewportState
ViewStatus

Enums

IssueLevel
MultiLayout
OverlayMode
ViewportInteractionMode
How the framed viewport responds to mouse wheel + drag.
ViewStatusKind

Extensions

IssueLevelOrder on IssueLevel

Typedefs

ValidateFn = List<ValidationIssue> Function(Map<String, Object?> data)

Exceptions / Errors

UnknownUiRuntime
Thrown when UiView cannot find a runtime for the requested target.