shutter 0.1.0
shutter: ^0.1.0 copied to clipboard
Renders any Flutter widget to PNG, from a command-line expression or the project's `@Preview` functions, and diffs two runs pixel-wise. A small CLI shaped for AI agents.
Changelog #
0.1.0 #
Initial release: a CLI, shaped for AI agents, that renders Flutter widgets to PNG and compares two runs.
shutter shotrenders the@Previewfunctions of the named files, or one--widgetexpression, to PNG throughflutter test. The target project gains no dependency.shutter diffcompares two runs by shot id aschanged,added,removed, orunchanged;--imagesmarks the differing pixels.shutter initwrites the shell that wraps every shot, andshutter doctorchecks the setup.shutter agentandshutter manualprint the playbook and the reference; theshutter-visual-checkskill points agents at them.- Requires Flutter 3.47+ (Dart 3.13+) in the target project.
Experimental (specification not settled):
- The default shell generated for the design library the project uses.
- A preview's
theme, through Flutter's unstablePreviewThemeDatainterface. - google_fonts, downloaded once into
.dart_tool/shutter/fonts/google_fonts/and served as bundled assets.