-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can reverseCurve support be added on CurvedAnimation? #95
Comments
Thanks for the PR. I did a code review and it looks good. I'm going to do some tests to make sure it all works as expected, and then plan to accept it. |
Currently in the latest version of flutter, using |
In the case of unfixed, use |
I ran into that immediately on testing this, but I think it may be the expected behavior per the docs:
If so, it severely limits the usefulness of this parameter because it only applies when you manually call Another quick note on the PR — My gut on this is to defer accepting the PR until the Flutter issue is resolved one way or the other, but I'm open to feedback. |
As an aside, if you're able to share your specific use-case for this parameter (bonus points for visuals), that would also help me suss out the value proposition. Also — thanks for the issue and PR! |
@gskinner I also require this parameter. In game development, it's common to create animations that start quickly and end slowly, and this applies to both showing and hiding elements. However, using the same curve for the reverse process results in an element hiding slowly at the start and quickly at the end. This can negatively impact the user experience, as the transition appears excessively slow when an element starts to hide. |
@shtse8 - per this comment: I'm trying to weigh the added maintenance against the value given that the This param is easily implemented, but it has to be added (and maintained) across ~100 different places. I'm also a bit concerned that the inherent limitations in Flutter (described above) will cause confusion. And of course, it's always much easier to add to an API than remove later. Feedback is very welcome. Thanks! |
Thank you for your insights on the matter. You're correct that we can manage the reverse animations by rebuilding them with a different curve. However, this approach means we lose the convenience of the default settings and will have to manually adjust each animation individually throughout the entire project. |
Flutter's built-in |
such as:
The text was updated successfully, but these errors were encountered: