flutter_sdui_test 1.0.1
flutter_sdui_test: ^1.0.1 copied to clipboard
Testing utilities for Flutter SDUI framework. Provides sduiGoldenTest() for side-by-side native vs SDUI golden comparisons.
Changelog #
1.0.1 - 2026-04-08 #
1.0.0 #
- Initial release of
flutter_sdui_test— golden test utilities for comparing native Flutter widgets against their SDUI-rendered equivalents. sduiGoldenTest()— registers atestWidgetsgroup per device that captures{name}_{device}_native.pngand{name}_{device}_sdui.pnggolden files side-by-side.SduiDevicespresets:phone(390×844 iPhone 14),tablet(820×1180 iPad Air),small(360×800 Android compact).SduiTestSchema— loads a JSON schema from a file path (fromPath) or an inline map (fromJson).sduiTestTheme/loadSduiFonts— wraps pumped widgets with theAhemtest font to prevent false positives from font rendering differences.SduiDiffReporter— formats pixel-diff failure output with per-pixel statistics.- Configurable
thresholdparameter (0.0–1.0, default0.01) for tolerating minor rendering differences.