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 2026Releases
latest 17-
1.0.0-dev.407 Aug 2026 pre-releaseRelease notes
Open source →- 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.
-
1.0.0-dev.302 Apr 2026 pre-releaseRelease notes
Open source →Note: This release has breaking changes.
- BREAKING FIX: always load all images.
-
1.0.0-dev.231 Mar 2026 pre-releaseRelease notes
Open source →Note: This release has breaking changes.
- BREAKING REFACTOR: remove
renderImagesfrom snaptest settings, always precache and render them. - BREAKING REFACTOR: move
captureImageinto extensions onFinderandElement.
- BREAKING REFACTOR: remove
-
1.0.0-dev.131 Mar 2026 pre-releaseRelease notes
Open source →Release notes
Open source →Note: This release has breaking changes.
-
FIX: make sure
loadFontscan 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.andGoldennow 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.globalto be fully rendered and addSnaptestSettings.goldens. -
BREAKING FEAT: simplify syntax from
snap(matchToGolden: true)tosnap.golden()andsnap.andGolden(). -
BREAKING FEAT: render blocked text with tighter boxes and paragraphs.
-
-
0.3.107 Aug 2026Release notes
Open source →- 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.
-
0.3.012 Mar 2026Release notes
Open source →Note: This release has breaking changes.
- BREAKING FEAT: disable anti-aliasing on blocked text painting for better consistency.
-
0.2.315 Jan 2026Release notes
Open source →- FEAT: add
TestOnDevicevariant, so you can quickly simulate multiple devices in widget tests.
- FEAT: add
-
0.2.3+125 Feb 2026 -
0.2.211 Nov 2025Release notes
Open source →-
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 withinrunAsync, even with font loading.
-
-
0.2.2+111 Nov 2025 -
0.2.124 Sep 2025Release notes
Open source →- Graduate package to a stable release. See pre-releases prior to this version for changelog entries.
-
0.2.1-dev.002 Sep 2025 pre-releaseRelease notes
Open source →- FEAT: add sequence animations to motor.
- FEAT: add TrimmedMotion as a way to take subsets of any motion.
-
0.2.023 Jul 2025Release notes
Open source →Note: This release has breaking changes.
- REFACTOR: rename
SnaptestSettings.fulltoSnaptestSettings.rendered. - FEAT: add
loadFontsAndIcons()and recommend adding it toflutter_test_config.dart. - FEAT: support passing orientations to settings.
- DOCS: added banner as screenshot to pubspec.
- DOCS: updated banner with new settings.
- DOCS: document
snapTestfunction 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
appendDeviceNamein favor ofalwaysAppendDeviceNameandalwaysAppendOrientation.
- REFACTOR: rename
-
0.1.022 Jul 2025Release notes
Open source →- FEAT: skip drawing paragraphs in golden canvas for cleaner images (#144).
- FEAT: support golden comparison (#142).
-
0.1.0-dev.322 Jul 2025 pre-release -
0.1.0-dev.222 Jul 2025 pre-release -
0.1.0-dev.122 Jul 2025 pre-releaseNothing published for this version