-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Deprecate VelocityTracker default constructor and added VelocityTracker.withKind constructor #66043
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
Deprecate VelocityTracker default constructor and added VelocityTracker.withKind constructor #66043
Conversation
|
Gold has detected about 3 untriaged digest(s) on patchset 4. |
|
Gold has detected about 3 untriaged digest(s) on patchset 7. |
|
Gold has detected about 3 untriaged digest(s) on patchset 8. |
|
The change looks good. My current thinking is that we should only submit this if the original change (without this fix) did not and will not make it into any stable releases. Otherwise, this may actually be even more disruptive... |
goderbauer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
This is probably worth cherry-picking? |
Nevermind, its an optional parameter now. So, if you already migrated, everything will continue to work. |
|
My problem still persist since this package https://pub.dev/packages/mp_chart is also depending on another package that uses the Velocity tracker class ->optimized_gesture_detector-0.0.5/lib/scale.dart:229:55: and requires a positional argument |
…er.withKind constructor (flutter#66043) We've gotten feedback that the VelocityTracker change was disruptive, though it did not break any of the flutter framework or customer tests. In order to make the change non-breaking, PointerDeviceKind parameter can be made optional. Nevertheless, this parameter should be provided so that the existing touch handlers can use more accurate gestures on mouse/stylus inputs, so we can encourage this by deprecating the default constructor and pointing users towards the VelocityTracker.withKind constructor that takes a non-optional parameter
…er.withKind constructor (flutter#66043) We've gotten feedback that the VelocityTracker change was disruptive, though it did not break any of the flutter framework or customer tests. In order to make the change non-breaking, PointerDeviceKind parameter can be made optional. Nevertheless, this parameter should be provided so that the existing touch handlers can use more accurate gestures on mouse/stylus inputs, so we can encourage this by deprecating the default constructor and pointing users towards the VelocityTracker.withKind constructor that takes a non-optional parameter
* Deprecate VelocityTracker default constructor and added VelocityTracker.withKind constructor (#66043) * [flutter_tools] fix failure to create ansi spinner if download needs to be retried (#65797) * Listen to Debug VM stream to get Stdout logs from VMService (#66310) * Update cherry picked engine Co-authored-by: Jonah Williams <jonahwilliams@google.com> Co-authored-by: Jenn Magder <magder@google.com>
Description
We've gotten feedback that the VelocityTracker change was disruptive, though it did not break any of the flutter framework or customer tests. In order to make the change non-breaking, PointerDeviceKind parameter can be made optional.
Nevertheless, this parameter should be provided so that the existing touch handlers can use more accurate gestures on mouse/stylus inputs, so we can encourage this by deprecating the default constructor and pointing users towards the VelocityTracker.withKind constructor that takes a non-optional parameter