Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
2e9e1772
Unverified
Commit
2e9e1772
authored
Feb 16, 2021
by
Kate Lovett
Committed by
GitHub
Feb 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for VelocityTracker deprecation (#75649)
parent
a74a26c6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
0 deletions
+35
-0
fix_data.yaml
packages/flutter/lib/fix_data.yaml
+27
-0
gestures.dart
packages/flutter/test_fixes/gestures.dart
+4
-0
gestures.dart.expect
packages/flutter/test_fixes/gestures.dart.expect
+4
-0
No files found.
packages/flutter/lib/fix_data.yaml
View file @
2e9e1772
...
...
@@ -11,6 +11,33 @@
version
:
1
transforms
:
# Changes made in https://github.com/flutter/flutter/pull/66043
-
title
:
"
Use
withKind"
date
:
2020-09-17
element
:
uris
:
[
'
gestures.dart'
]
constructor
:
'
'
inClass
:
'
VelocityTracker'
oneOf
:
-
if
:
"
pointerDeviceKind
==
''"
changes
:
-
kind
:
'
rename'
newName
:
'
withKind'
-
kind
:
'
addParameter'
index
:
0
name
:
'
kind'
style
:
required_positional
argumentValue
:
expression
:
'
PointerDeviceKind.touch'
-
if
:
"
pointerDeviceKind
!=
''"
changes
:
-
kind
:
'
rename'
newName
:
'
withKind'
variables
:
pointerDeviceKind
:
kind
:
'
fragment'
value
:
'
arguments[0]'
# Changes made in https://github.com/flutter/flutter/pull/72043
-
title
:
"
Migrate
to
'maxLengthEnforcement'"
date
:
2020-12-13
...
...
packages/flutter/test_fixes/gestures.dart
View file @
2e9e1772
...
...
@@ -10,4 +10,8 @@ void main() {
// Change made in https://github.com/flutter/flutter/pull/28602
final
PointerExitEvent
exitEvent
=
PointerExitEvent
.
fromHoverEvent
(
PointerHoverEvent
());
// Changes made in https://github.com/flutter/flutter/pull/66043
VelocityTracker
tracker
=
VelocityTracker
();
tracker
=
VelocityTracker
(
PointerDeviceKind
.
mouse
);
}
packages/flutter/test_fixes/gestures.dart.expect
View file @
2e9e1772
...
...
@@ -10,4 +10,8 @@ void main() {
// Change made in https://github.com/flutter/flutter/pull/28602
final PointerExitEvent exitEvent = PointerExitEvent.fromMouseEvent(PointerHoverEvent());
// Changes made in https://github.com/flutter/flutter/pull/66043
VelocityTracker tracker = VelocityTracker.withKind(PointerDeviceKind.touch);
tracker = VelocityTracker.withKind(PointerDeviceKind.mouse);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment