Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: Fix debug assertion on ShakeCurve animation.
Flutter's Curve class requires that the `transform` function map 0 to ~0 and 1 to ~1. The previous ShakeCurve transform function sin(t * 3 * pi).abs(), which doesn't satisfy this property because sin(3 * pi) is 0, not 1. Changing the constant from 3 to 2.5 produces the required endpoint value for t = 1.
- Loading branch information