shutter 0.1.1 copy "shutter: ^0.1.1" to clipboard
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 --help open on what shutter produces, a change to a widget expressed as before and after images, instead of on the agent that drives it.
  • The ai topic is replaced by cli: 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 agent says what shot --widget answers, 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 --import reaches only what the project's pubspec.yaml resolves.
  • 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 shot renders the @Preview functions of the named files, or one --widget expression, to PNG through flutter test. The target project gains no dependency.
  • shutter diff compares two runs by shot id as changed, added, removed, or unchanged; --images marks the differing pixels.
  • shutter init writes the shell that wraps every shot, and shutter doctor checks the setup.
  • shutter agent and shutter manual print the playbook and the reference; the shutter-visual-check skill 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 unstable PreviewThemeData interface.
  • google_fonts, downloaded once into .dart_tool/shutter/fonts/google_fonts/ and served as bundled assets.
0
likes
160
points
90
downloads

Documentation

API reference

Publisher

verified publisherkoji-1009.com

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Topics

#flutter #preview #screenshot #visual-diff #cli

License

MIT (license)

Dependencies

analyzer, args, crypto, image, path, yaml

More

Packages that depend on shutter