Skip to content

Conversation

@jonahwilliams
Copy link
Contributor

@jonahwilliams jonahwilliams commented Sep 17, 2020

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

@flutter-dashboard flutter-dashboard bot added framework flutter/packages/flutter repository. See also f: labels. work in progress; do not review labels Sep 17, 2020
@jonahwilliams jonahwilliams changed the title Deprecate VelocityTracker and added VelocityTracker.kind Deprecate VelocityTracker and added VelocityTracker.withKind Sep 17, 2020
@skia-gold
Copy link

Gold has detected about 3 untriaged digest(s) on patchset 4.
View them at https://flutter-gold.skia.org/cl/github/66043

@jonahwilliams jonahwilliams marked this pull request as ready for review September 17, 2020 18:29
@flutter-dashboard flutter-dashboard bot added the c: contributor-productivity Team-specific productivity, code health, technical debt. label Sep 17, 2020
@jonahwilliams jonahwilliams changed the title Deprecate VelocityTracker and added VelocityTracker.withKind Deprecate VelocityTracker default constructor and added VelocityTracker.withKind constructor Sep 17, 2020
@skia-gold
Copy link

Gold has detected about 3 untriaged digest(s) on patchset 7.
View them at https://flutter-gold.skia.org/cl/github/66043

@skia-gold
Copy link

Gold has detected about 3 untriaged digest(s) on patchset 8.
View them at https://flutter-gold.skia.org/cl/github/66043

@goderbauer
Copy link
Member

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...

Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@goderbauer
Copy link
Member

This is probably worth cherry-picking?

@goderbauer
Copy link
Member

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...

Nevermind, its an optional parameter now. So, if you already migrated, everything will continue to work.

@yunior123
Copy link

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

goderbauer pushed a commit to goderbauer/flutter that referenced this pull request Sep 18, 2020
…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
christopherfujino pushed a commit to chris-forks/flutter that referenced this pull request Sep 23, 2020
…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
christopherfujino added a commit that referenced this pull request Sep 25, 2020
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: contributor-productivity Team-specific productivity, code health, technical debt. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants