shutter 0.1.1
shutter: ^0.1.1 copied to clipboard
Renders a Flutter project's widget previews to PNG, reusing the ones it already has, and diffs two runs pixel by pixel into before and after images of a change.
Changelog #
0.1.1 #
Documentation and package metadata; the tool behaves as in 0.1.0.
- The package description, the README, and
shutter --helpopen on what shutter produces, a change to a widget expressed as before and after images, instead of on the agent that drives it. - The
aitopic is replaced bycli: shutter is a command-line tool an agent can drive, not an AI package. - README lists when to reach for shutter: a change going up for review, a refactor that should change nothing on screen, a widget that might break on screen, a dependency just added or upgraded.
shutter agentsays whatshot --widgetanswers, a look at a widget before the call site exists, names the commands that upload an image to a pull or merge request, and states that--importreaches only what the project'spubspec.yamlresolves.- Flutter's previewer is called by its name, the Flutter Widget Previewer.
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.