runner/screenshot_lottie_ready library
Constants
- kScreenshotLottieProgress → const double
- Representative progress for contact-sheet frames.
- kScreenshotLottieReadyTimeout → const Duration
- Default budget for waiting on Lottie composition load before a screenshot.
Functions
-
areVisibleLottiesReady(
WidgetTester tester) → bool -
Whether every on-screen
EnsembleLottiewith a source has finished loading. -
seekVisibleLottiesForScreenshot(
WidgetTester tester, {double progress = kScreenshotLottieProgress}) → void - Holds each loaded Lottie on a mid-animation frame for screenshot capture.
-
waitForVisibleLottiesReady(
WidgetTester tester, {Duration timeout = kScreenshotLottieReadyTimeout, Duration pollInterval = const Duration(milliseconds: 50), double progress = kScreenshotLottieProgress}) → Future< void> - Best-effort wait until visible Lotties have compositions ready to paint, then seek to kScreenshotLottieProgress so intro-only frames are skipped.