Deprecate VelocityTracker default constructor and added...
Deprecate VelocityTracker default constructor and added VelocityTracker.withKind constructor (#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
Showing
- dev/benchmarks/microbenchmarks/lib/gestures/velocity_tracker_bench.dart 1 addition, 1 deletion.../microbenchmarks/lib/gestures/velocity_tracker_bench.dart
- packages/flutter/lib/src/gestures/long_press.dart 1 addition, 1 deletionpackages/flutter/lib/src/gestures/long_press.dart
- packages/flutter/lib/src/gestures/monodrag.dart 1 addition, 1 deletionpackages/flutter/lib/src/gestures/monodrag.dart
- packages/flutter/lib/src/gestures/multidrag.dart 1 addition, 1 deletionpackages/flutter/lib/src/gestures/multidrag.dart
- packages/flutter/lib/src/gestures/scale.dart 1 addition, 1 deletionpackages/flutter/lib/src/gestures/scale.dart
- packages/flutter/lib/src/gestures/velocity_tracker.dart 9 additions, 2 deletionspackages/flutter/lib/src/gestures/velocity_tracker.dart
- packages/flutter/lib/src/widgets/scroll_configuration.dart 1 addition, 1 deletionpackages/flutter/lib/src/widgets/scroll_configuration.dart
- packages/flutter/test/gestures/velocity_tracker_test.dart 3 additions, 3 deletionspackages/flutter/test/gestures/velocity_tracker_test.dart
- packages/flutter/test/widgets/range_maintaining_scroll_physics_test.dart 1 addition, 1 deletion...r/test/widgets/range_maintaining_scroll_physics_test.dart
- packages/flutter/test/widgets/scroll_behavior_test.dart 1 addition, 1 deletionpackages/flutter/test/widgets/scroll_behavior_test.dart
Please register or sign in to comment