Skip to content
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

[Feature request]: Add transform animation #86

Closed
1 task done
CodeDoctorDE opened this issue Jan 15, 2022 · 3 comments · Fixed by #642
Closed
1 task done

[Feature request]: Add transform animation #86

CodeDoctorDE opened this issue Jan 15, 2022 · 3 comments · Fixed by #642
Assignees
Labels
enhancement Small enhancements to existing features future Ideas that have a low priority.
Milestone

Comments

@CodeDoctorDE
Copy link
Member

Is your feature request related to a problem? Please describe

No response

Describe your feature request!

Currently the transformation is not very fluent. We need some animation!

Additional context

see https://api.flutter.dev/flutter/widgets/InteractiveViewer-class.html

Code of Conduct

  • I agree to follow this project's Code of Conduct
@CodeDoctorDE CodeDoctorDE added the enhancement Small enhancements to existing features label Jan 15, 2022
@CodeDoctorDE CodeDoctorDE self-assigned this Jan 15, 2022
@CodeDoctorDE CodeDoctorDE added the good first issue Good for newcomers label Feb 13, 2022
@CodeDoctorDE CodeDoctorDE added this to the 1.3 milestone Feb 13, 2022
@CodeDoctorDE CodeDoctorDE removed this from the 1.3 milestone May 1, 2022
@CodeDoctorDE CodeDoctorDE added the future Ideas that have a low priority. label May 1, 2022
@CodeDoctorDE CodeDoctorDE removed the good first issue Good for newcomers label Sep 30, 2022
@CodeDoctorDE CodeDoctorDE added this to the 2.1 milestone Feb 11, 2024
@CodeDoctorDE
Copy link
Member Author

CodeDoctorDE commented Mar 23, 2024

We could add something like this:

class FrictionState {
final DateTime timeStamp;
final double velocityX, velocityY, velocityScale;
}

And in the view.dart we could create an AnimationController for all these 3 values.
If timeStamp is not the same in BlocListener, recreate the animateWith.

Calculate done value and use transform.x + animation.value - done

@CodeDoctorDE
Copy link
Member Author

CodeDoctorDE commented Mar 24, 2024

Added in 2.1.0-beta.3 behind an experiment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Small enhancements to existing features future Ideas that have a low priority.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant