Skip to content

Add animations support#21

Merged
juan-campuzano merged 5 commits into
mainfrom
feature/animations
Sep 8, 2025
Merged

Add animations support#21
juan-campuzano merged 5 commits into
mainfrom
feature/animations

Conversation

@juan-campuzano

@juan-campuzano juan-campuzano commented Sep 8, 2025

Copy link
Copy Markdown
Collaborator

Animations

  • Added the GoldenAnimationCapture extension on WidgetTester (lib/src/capture/golden_animation_capture.dart), enabling automated capture and combination of screenshots at defined animation steps, with support for layout configuration and timeline labels.
  • Introduced the BcGoldenCapture.animation API, demonstrated in documentation and example tests, to facilitate animation golden tests with step-based frame capturing and configuration options. [1] [2]

Screenshot Capture Refactor:

  • Refactored screenshot capture logic from the GoldenScreenshot class to WidgetTester extensions, simplifying usage and ensuring screenshots are tied to the test context. Methods such as captureGoldenScreenshot and combineGoldenScreenshots are now called directly on the tester. [1] [2]
  • Updated example tests to use the new extension methods for screenshot capture and combination, replacing previous class-based usage. [1] [2] [3]

Documentation and API Updates:

  • Expanded the README with a new section on animation testing, including usage examples and guidance for common animation scenarios.
  • Updated library exports to include new animation-related configuration and capture files, and fixed logger export.
image

Refactored animation capture logic to use a new helpers.dart for image decoding and border drawing. Improved screenshot combination and layout for animation tests, updated logger usage, and fixed method signatures for consistency. Updated dependencies in pubspec.yaml and regenerated mock files to match API changes.
@juan-campuzano juan-campuzano changed the title Feature/animations Add animations support Sep 8, 2025
@juan-campuzano juan-campuzano marked this pull request as ready for review September 8, 2025 20:42
@juan-campuzano juan-campuzano merged commit 7b902fd into main Sep 8, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants