Skip to content

feat(spark_css)!: add typed CssTransitionProperty and CssDuration#64

Merged
kevin-sakemaer merged 3 commits into
mainfrom
worktree-typed-transition-params
Feb 27, 2026
Merged

feat(spark_css)!: add typed CssTransitionProperty and CssDuration#64
kevin-sakemaer merged 3 commits into
mainfrom
worktree-typed-transition-params

Conversation

@kevin-sakemaer
Copy link
Copy Markdown
Contributor

Summary

  • Add CssTransitionProperty sealed class with typed constants for 21 common animatable CSS properties plus variable() and raw() escape hatch
  • Add CssDuration sealed class with ms(), s(), variable(), and raw() constructors
  • Breaking: CssTransition now uses CssTransitionProperty and CssDuration instead of raw String parameters
  • Bump version to 1.0.0-alpha.4

Test plan

  • dart analyze passes with no issues
  • All 388 tests pass including new tests for CssTransitionProperty and CssDuration

…sses

Replace raw String parameters in CssTransition with typed sealed classes
for property names and durations, matching the existing CssTimingFunction
pattern.
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 27, 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 c259bd3 into main Feb 27, 2026
10 checks passed
@kevin-sakemaer kevin-sakemaer deleted the worktree-typed-transition-params branch February 27, 2026 13:03
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.

1 participant