PackageTrack
Sign in Get early access

snaptest

Snap photos in your widget tests.

0.3.1 42K downloads/mo #1589 most downloaded on pub.dev whynotmake-it/rivership

What this package is like to depend on

Last release 17 days ago

07 Aug 2026

Release timing varies

gaps range from 2 weeks to 4 months

Nearly every release is documented

notes for 9 of 9 stable releases

Nothing withdrawn

no release was ever pulled

1 years old

17 releases · first in 2025

12 releases in the last 12 months

see the full history below

Release timeline

17 releases · Jul 2025 to Aug 2026
2026
Release Pre-release

Releases

latest 17
  1. 1.0.0-dev.4 07 Aug 2026 pre-release
    Release notes
    • CHORE: license this release under Apache-2.0 and document the adapted and modified Spot v0.18.0 font-loading portions. Earlier published archives remain unchanged and retain the license notices shipped in those archives; their MIT notice does not license this release.
    Open source →
  2. 1.0.0-dev.3 02 Apr 2026 pre-release
    Release notes Open source →
    Release notes

    Note: This release has breaking changes.

    • BREAKING FIX: always load all images.
    Open source →
  3. 1.0.0-dev.2 31 Mar 2026 pre-release
    Release notes Open source →
    Release notes

    Note: This release has breaking changes.

    • BREAKING REFACTOR: remove renderImages from snaptest settings, always precache and render them.
    • BREAKING REFACTOR: move captureImage into extensions on Finder and Element.
    Open source →
  4. 1.0.0-dev.1 31 Mar 2026 pre-release
    Release notes Open source →
    Release notes

    Note: This release has breaking changes.

    • FIX: make sure loadFonts can be called before test execution.

    • FIX: don't force reset platform override to null after test.

    • FIX: always tear down global settings correctly.

    • FEAT: snap.andGolden now returns both files separately in a record.

    • FEAT: export cleanSnaps function for programmatic snapshot cleanup.

      Add cleanSnaps() as a public API to allow users to clean screenshots programmatically from their tests.

    • FEAT: add automatic counter to prevent overwriting snapshots.

      When snap() is called multiple times without a name, filenames now include a counter suffix (_2, _3, etc.) to prevent overwriting.

    • DOCS: document font loading.

    • BREAKING REFACTOR: remove devices and orientations from SnaptestSettings.

      Move device iteration responsibility to TestDevicesVariant and add explicit device/orientation parameters to snap(). This eliminates the duplicate concept of device configuration in both settings and variant.

      orientations. Use TestDevicesVariant for multi-device testing or pass device/orientation directly to snap(). snap() now returns Future<File> instead of Future<List<File>>.

    • BREAKING REFACTOR: replace WidgetTesterDevice with null to leave view unchanged.

      • The devices parameter is now a Set<DeviceInfo?> instead of List<DeviceInfo>
      • Remove any imports of WidgetTesterDevice

      Unlike the previous WidgetTesterDevice which represented a default test environment, null now simply leaves the view in whatever state it's currently in without any modifications. This allows for more flexible testing scenarios where users have pre-configured their view.

    • BREAKING REFACTOR: rename TestOnDevices to TestDevicesVariant and extend ValueVariant.

    • BREAKING FEAT: make Cupertino font loading on macOS opt-in.

    • BREAKING FEAT: default SnaptestSettings.global to be fully rendered and add SnaptestSettings.goldens.

    • BREAKING FEAT: simplify syntax from snap(matchToGolden: true) to snap.golden() and snap.andGolden().

    • BREAKING FEAT: render blocked text with tighter boxes and paragraphs.

    Open source →
  5. 0.3.1 07 Aug 2026
    Release notes
    • CHORE: license this release under Apache-2.0 and document the adapted and modified Spot v0.18.0 font-loading portions. Earlier published archives remain unchanged and retain the license notices shipped in those archives; their MIT notice does not license this release.
    Open source →
  6. 0.3.0 12 Mar 2026
    Release notes

    Note: This release has breaking changes.

    • BREAKING FEAT: disable anti-aliasing on blocked text painting for better consistency.
    Open source →
  7. 0.2.3 15 Jan 2026
    Release notes
    • FEAT: add TestOnDevice variant, so you can quickly simulate multiple devices in widget tests.
    Open source →
  8. 0.2.3+1 25 Feb 2026
    Release notes
    • FIX: snap with from: did not work in goldens.
    Open source →
  9. 0.2.2 11 Nov 2025
    Release notes
    • FEAT: improve font loading drastically.

      • Remove dependency on spot package
      • Load actual SFPro fonts on macOS if you have them installed, otherwise print a warning and fall back to Roboto.
      • Allow calling snap() from within runAsync, even with font loading.
    Open source →
  10. 0.2.2+1 11 Nov 2025
    Release notes
    • DOCS: remove outdated font loading section from README.
    Open source →
  11. 0.2.1 24 Sep 2025
    Release notes
    • Graduate package to a stable release. See pre-releases prior to this version for changelog entries.
    Open source →
  12. 0.2.1-dev.0 02 Sep 2025 pre-release
    Release notes
    • FEAT: add sequence animations to motor.
    • FEAT: add TrimmedMotion as a way to take subsets of any motion.
    Open source →
  13. 0.2.0 23 Jul 2025
    Release notes

    Note: This release has breaking changes.

    • REFACTOR: rename SnaptestSettings.full to SnaptestSettings.rendered.
    • FEAT: add loadFontsAndIcons() and recommend adding it to flutter_test_config.dart.
    • FEAT: support passing orientations to settings.
    • DOCS: added banner as screenshot to pubspec.
    • DOCS: updated banner with new settings.
    • DOCS: document snapTest function in README.
    • DOCS: documented flutter_test_config usage.
    • DOCS: document new orientations.
    • BREAKING REFACTOR: move pathPrefix to settings.
    • BREAKING REFACTOR: renamed the default test tag to snaptest.
    • BREAKING REFACTOR: removed appendDeviceName in favor of alwaysAppendDeviceName and alwaysAppendOrientation.
    Open source →
  14. 0.1.0 22 Jul 2025
    Release notes
    • FEAT: skip drawing paragraphs in golden canvas for cleaner images (#144).
    • FEAT: support golden comparison (#142).
    Open source →
  15. 0.1.0-dev.3 22 Jul 2025 pre-release
    Release notes
    • DOCS: update banner image (#140).
    Open source →
  16. 0.1.0-dev.2 22 Jul 2025 pre-release
    Release notes
    • FEAT: allow include device frame (#137).
    Open source →
  17. 0.1.0-dev.1 22 Jul 2025 pre-release

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive