flan_flutter library

Classes

Annotation
A single annotation with bounds, text, and metadata.
AnnotationService
Service that manages annotation state: drawing, CRUD, and programmatic annotation creation.
CoordinatesMatcher
Matches by screen coordinates. This is a special matcher that doesn't actually match widgets - it's used as a fast path for tapping at specific screen positions without searching the widget tree.
ErrorInterceptor
Intercepts Flutter framework errors and unhandled exceptions, making them available for forwarding to the connected agent.
FlanBinding
A custom binding that extends Flutter's default binding to provide integration points for the Flan MCP.
FlanConfiguration
Configuration for the Flan extensions.
FlanOverlayWidget
Overlay widget injected at the root of the app via FlanBinding.wrapWithDefaultView. Renders inspector interaction and annotation drawing UI on top of the app content.
GitHubIssueService
Formats queued flan messages into a GitHub issue and POSTs to the configured backend endpoint.
InspectorHighlight
Highlight data for a single element at the inspected point.
InspectorSelection
Full selection data returned to the MCP client.
InspectorService
Service that implements widget inspector logic: hit testing all elements at a point, building widget ancestor paths, extracting source locations, and cycling through overlapping widgets.
InterceptedError
A single intercepted error.
KeyMatcher
Matches widgets by their ValueKey<String> key.
ScreenshotService
Service for taking screenshots of the main app view using RenderView layers.
TextMatcher
Matches widgets by their text content.
TypeMatcher
Matches widgets by their runtime type.
TypeStringMatcher
Matches widgets by their runtime type as a string.
UserMessageService
Service that queues messages from the user in the Flutter app to be sent to the LLM agent via the MCP server.
WidgetMatcher
Abstract base class for matching widgets in the Flutter widget tree.

Enums

AnnotationDrawState
The current drawing state of the annotation overlay.

Constants

kAnnotationChangedEventKind → const String
Event kind sent when annotations change.