Skip to content

feat: add typed CssAnimation property support#99

Merged
kevin-sakemaer merged 4 commits intomainfrom
feat/css-animation-property
Mar 1, 2026
Merged

feat: add typed CssAnimation property support#99
kevin-sakemaer merged 4 commits intomainfrom
feat/css-animation-property

Conversation

@kevin-sakemaer
Copy link
Copy Markdown
Contributor

Summary

  • Add strongly-typed CssAnimation sealed class and sub-types (CssAnimationDirection, CssAnimationFillMode, CssAnimationPlayState, CssAnimationIterationCount) following the established sealed class pattern
  • Reuse existing CssDuration and CssTimingFunction from css_transition.dart instead of duplicating types
  • Add animation parameter to Style.typed() constructor

Test plan

  • 25 new tests covering all animation types: keywords, factories, variable, raw, global, and multiple animations
  • Full test suite passes (440 tests, no regressions)

Closes #66

Add strongly-typed CssAnimation class and related sub-types
(CssAnimationDirection, CssAnimationFillMode, CssAnimationPlayState,
CssAnimationIterationCount) for the animation CSS shorthand property.
Reuses existing CssDuration and CssTimingFunction from css_transition.

Closes #66
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@kevin-sakemaer kevin-sakemaer merged commit f1d2073 into main Mar 1, 2026
10 checks passed
@kevin-sakemaer kevin-sakemaer deleted the feat/css-animation-property branch March 1, 2026 10:18
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.

Add animation CSS property support to Style

1 participant