print_widget_flutter 0.1.0 copy "print_widget_flutter: ^0.1.0" to clipboard
print_widget_flutter: ^0.1.0 copied to clipboard

Capture Flutter widgets and pages as PNG screenshots for visual verification. Designed for LLMs to generate, compare, and iterate on UI.

0.1.0 #

Initial release.

CLI #

  • print_widget init — set up a Flutter project for screenshot capture.
  • print_widget generate — generate PNG screenshots from configured entries.
  • print_widget list — show configured entries.
  • print_widget config — read/write project settings.
  • --name, --device, --all-devices, --delete-old flags.
  • --llm-guide — print compact LLM reference with project-specific paths.

API #

  • PrintSession — configure app wrapper, default device, output mode.
  • PrintEntry with page(), widget(), pages(), widgets() helpers.
  • state() for grouped visual states.
  • StateOutputMode (prefix, suffix, folder).
  • DeviceFrame presets for 12 iOS/Android devices + preset groups.
  • Printable mixin for self-describing widgets.
  • loadPrintWidgetFonts() — automatic font loading from project and packages.
  • JSON manifest generation for LLM consumption.
  • Standalone test API (printWidget, printEntry, printAllEntries).
  • appWrapperFromMaterialApp helper.
4
likes
0
points
486
downloads

Publisher

unverified uploader

Weekly Downloads

Capture Flutter widgets and pages as PNG screenshots for visual verification. Designed for LLMs to generate, compare, and iterate on UI.

Repository (GitHub)
View/report issues

Topics

#flutter #screenshot #testing #golden-test #widget

Funding

Consider supporting this project:

github.com

License

unknown (license)

Dependencies

args, flutter, flutter_test, path, yaml

More

Packages that depend on print_widget_flutter