Inspect Flutter Screens & Visual Diffs in ~15s, No Simulator
Replace minutes of simulator clicks and dozens of vision-token-heavy screenshots with a single ~15-second flutter test pass (48 example frames in 15.2s). Coding agents inspect one contact sheet and compact manifest.json so they only open the single changed or failing frame. Zero external dependencies.
Feature Showcase
Contact Sheet Across Devices & Themes
Render every screen across light/dark mode and phone/tablet sizes in one pass.
Golden Baseline & Pixel Diff Overlay
Spot exact UI regressions with side-by-side baseline comparisons and --fail-on-diff.
State Matrix & Frame Inspector
Verify populated, empty, long-text, and offline error states without a live backend.
Zero-Simulator CI & Agent JSON
Deterministic exit codes (0 to 5), overflow warnings, and structured JSON that saves agent vision tokens.
3-Step Quickstart
git clone https://github.com/krishnac7/screenCatalog.git
cd screenCatalog/example
flutter pub get
dart run screen_catalog --state all --frame
Outputs build/screen_catalog/contact_sheet.png, an offline HTML viewer
(index.html), per-frame PNGs, and a machine-readable manifest.json.
What It Gives You
Multi-Axis Matrix
Capture light/dark themes, phone/tablet/Android sizes, locales, text scales, and state overrides in one run.
Offline HTML Gallery & Diffs
Inspect Current, Baseline, Magenta Diff, and Split views in a self-contained HTML gallery with zero external requests.
Store-Ready Screenshots
Emit exact 24-bit RGB App Store & Google Play sizes into fastlane deliver and supply folders.
Agent & CI Ready (--json)
Fail-closed exit codes (0 to 5), --changed git scoping, layout overflow warnings, and a standard SKILL.md.
Use with AI Coding Agents
npx skills add krishnac7/screenCatalog
Or read llms.txt / llms-full.txt
for full CLI flags, exit codes, and catalog authoring patterns.
How It Compares
| Tool | Execution | Focus |
|---|---|---|
| screenCatalog | Headless flutter test (Flutter SDK only) | Whole-app screen/state matrix, contact sheets, offline HTML gallery, diffs, store shots, JSON |
| Widgetbook / Monarch | Live app / dedicated host runner | Interactive widget story exploration with knobs |
| Alchemist / Golden Toolkit | flutter test | Strict pixel-assertion golden tests |
| Patrol / Runtime MCP | Running emulator / VM Service | Live E2E interaction and runtime widget tree inspection |
Honest Limits
- Renders run inside
flutter_tester(software rasterizer), not Impeller on physical iOS/Android hardware. - Native platform views (maps, web views, camera, video, Rive, shaders) appear as labelled or generated stand-ins; every substitution is recorded in
manifest.json. - Dependencies initialized inside
main()beforerunAppneed fixture fakes inwrap,setUp, orafterMount. - Text rasterization differs across macOS and Linux; maintain baselines per OS and Flutter version.