Flutter Lens

v0.1.0-alpha.6
io.github.mullermnm/flutter-lens Checked 2 days ago Published 2 days ago

Render Flutter widgets to real PNGs for coding agents, locally and without an emulator.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

plan_flutter_preview

Read-only heuristic constructor and dependency hints for an existing Flutter widget.

ParameterTypeDescription
file *string
widget *string
projectstringRelative project folder inside the configured workspace. Defaults to .

inspect_png

Validate an existing workspace PNG and return dimensions and hash.

ParameterTypeDescription
file *string

compare_screens

Compare two existing workspace-relative PNG screenshots of the same viewport; returns change metrics and a highlighted PNG diff.

ParameterTypeDescription
after *string
before *string
thresholdinteger

list_frameworks

List supported, experimental and planned frameworks.

list_devices

List headless viewport presets.

discover_screens

Find candidate Flutter widgets by source inspection (heuristic).

ParameterTypeDescription
projectstringRelative project folder inside the configured workspace. Defaults to .

render_screen

Render a trusted Flutter preview to a real PNG. For Flutter use file and widget or fixture; experimental SwiftUI requires framework swiftui, macOS and an explicit Swift fixture; Compose requires framework compose, gradleTask and testClass.

ParameterTypeDescription
devicestring
diagnosticsbooleanFlutter only: opt in to bounded render-tree layout/semantics diagnostics without copying text.
filestring
fixturestring
fontFilestring
frameworkstring
gradleTaskstring
heightinteger
outputFilestringOptional new project-relative PNG path. Parent must exist; never overwrites.
pixelRationumber
projectstringRelative project folder inside the configured workspace. Defaults to .
settleMsinteger
sourcesarray
testClassstring
themestring
widgetstring
widthinteger