jaspr
jaspr copied to clipboard
feat: support `Duration` for CSS properties instead of `double`
Description
It is confusing whether the duration in things like Transition is in seconds or milliseconds, and dart has Duration so it makes sense to use it.
I propose two things:
Durationto be usedTransition.DurationExt(just likenumstr) to convert thatDuration's value into milliseconds.
Additional Context
BTW, I can work on this.
Great idea! Feel free to create a PR.