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
a0f7694d
Unverified
Commit
a0f7694d
authored
Apr 16, 2021
by
Kate Lovett
Committed by
GitHub
Apr 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add dart fix for DragAnchor deprecation (#80587)
parent
c3a15bf9
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
164 additions
and
0 deletions
+164
-0
fix_data.yaml
packages/flutter/lib/fix_data.yaml
+92
-0
cupertino.dart
packages/flutter/test_fixes/cupertino.dart
+12
-0
cupertino.dart.expect
packages/flutter/test_fixes/cupertino.dart.expect
+12
-0
material.dart
packages/flutter/test_fixes/material.dart
+12
-0
material.dart.expect
packages/flutter/test_fixes/material.dart.expect
+12
-0
widgets.dart
packages/flutter/test_fixes/widgets.dart
+12
-0
widgets.dart.expect
packages/flutter/test_fixes/widgets.dart.expect
+12
-0
No files found.
packages/flutter/lib/fix_data.yaml
View file @
a0f7694d
...
...
@@ -15,6 +15,98 @@
version
:
1
transforms
:
# Changes made in https://github.com/flutter/flutter/pull/79160
-
title
:
"
Migrate
to
'dragAnchorStrategy'"
date
:
2021-04-05
element
:
uris
:
[
'
material.dart'
,
'
widgets.dart'
,
'
cupertino.dart'
]
field
:
'
dragAnchor'
inClass
:
'
Draggable'
changes
:
-
kind
:
'
rename'
newName
:
'
dragAnchorStrategy'
# Changes made in https://github.com/flutter/flutter/pull/79160
-
title
:
"
Migrate
to
'dragAnchorStrategy'"
date
:
2021-04-05
element
:
uris
:
[
'
material.dart'
,
'
widgets.dart'
,
'
cupertino.dart'
]
constructor
:
'
'
inClass
:
'
Draggable'
oneOf
:
-
if
:
"
dragAnchor
==
'DragAnchor.child'"
changes
:
-
kind
:
'
addParameter'
index
:
9
name
:
'
dragAnchorStrategy'
style
:
optional_named
argumentValue
:
expression
:
'
childDragAnchorStrategy'
requiredIf
:
"
dragAnchor
==
'DragAnchor.child'"
-
kind
:
'
removeParameter'
name
:
'
dragAnchor'
-
if
:
"
dragAnchor
==
'DragAnchor.pointer'"
changes
:
-
kind
:
'
addParameter'
index
:
9
name
:
'
dragAnchorStrategy'
style
:
optional_named
argumentValue
:
expression
:
'
pointerDragAnchorStrategy'
requiredIf
:
"
dragAnchor
==
'DragAnchor.pointer'"
-
kind
:
'
removeParameter'
name
:
'
dragAnchor'
variables
:
dragAnchor
:
kind
:
'
fragment'
value
:
'
arguments[dragAnchor]'
# Changes made in https://github.com/flutter/flutter/pull/79160
-
title
:
"
Migrate
to
'dragAnchorStrategy'"
date
:
2021-04-05
element
:
uris
:
[
'
material.dart'
,
'
widgets.dart'
,
'
cupertino.dart'
]
field
:
'
dragAnchor'
inClass
:
'
LongPressDraggable'
changes
:
-
kind
:
'
rename'
newName
:
'
dragAnchorStrategy'
# Changes made in https://github.com/flutter/flutter/pull/79160
-
title
:
"
Migrate
to
'dragAnchorStrategy'"
date
:
2021-04-05
element
:
uris
:
[
'
material.dart'
,
'
widgets.dart'
,
'
cupertino.dart'
]
constructor
:
'
'
inClass
:
'
LongPressDraggable'
oneOf
:
-
if
:
"
dragAnchor
==
'DragAnchor.child'"
changes
:
-
kind
:
'
addParameter'
index
:
9
name
:
'
dragAnchorStrategy'
style
:
optional_named
argumentValue
:
expression
:
'
childDragAnchorStrategy'
requiredIf
:
"
dragAnchor
==
'DragAnchor.child'"
-
kind
:
'
removeParameter'
name
:
'
dragAnchor'
-
if
:
"
dragAnchor
==
'DragAnchor.pointer'"
changes
:
-
kind
:
'
addParameter'
index
:
9
name
:
'
dragAnchorStrategy'
style
:
optional_named
argumentValue
:
expression
:
'
pointerDragAnchorStrategy'
requiredIf
:
"
dragAnchor
==
'DragAnchor.pointer'"
-
kind
:
'
removeParameter'
name
:
'
dragAnchor'
variables
:
dragAnchor
:
kind
:
'
fragment'
value
:
'
arguments[dragAnchor]'
# Changes made in https://github.com/flutter/flutter/pull/66482
-
title
:
"
Migrate
to
'TextSelectionThemeData'"
date
:
2020-09-24
...
...
packages/flutter/test_fixes/cupertino.dart
View file @
a0f7694d
...
...
@@ -127,4 +127,16 @@ void main() {
// Changes made in https://github.com/flutter/flutter/pull/59127
const
BottomNavigationBarItem
bottomNavigationBarItem
=
BottomNavigationBarItem
(
title:
myTitle
);
bottomNavigationBarItem
.
title
;
// Changes made in https://github.com/flutter/flutter/pull/79160
Draggable
draggable
=
Draggable
();
draggable
=
Draggable
(
dragAnchor:
DragAnchor
.
child
);
draggable
=
Draggable
(
dragAnchor:
DragAnchor
.
pointer
);
draggable
.
dragAnchor
;
// Changes made in https://github.com/flutter/flutter/pull/79160
LongPressDraggable
longPressDraggable
=
LongPressDraggable
();
longPressDraggable
=
LongPressDraggable
(
dragAnchor:
DragAnchor
.
child
);
longPressDraggable
=
LongPressDraggable
(
dragAnchor:
DragAnchor
.
pointer
);
longPressDraggable
.
dragAnchor
;
}
packages/flutter/test_fixes/cupertino.dart.expect
View file @
a0f7694d
...
...
@@ -127,4 +127,16 @@ void main() {
// Changes made in https://github.com/flutter/flutter/pull/59127
const BottomNavigationBarItem bottomNavigationBarItem = BottomNavigationBarItem(label: myTitle);
bottomNavigationBarItem.label;
// Changes made in https://github.com/flutter/flutter/pull/79160
Draggable draggable = Draggable();
draggable = Draggable(dragAnchorStrategy: childDragAnchorStrategy);
draggable = Draggable(dragAnchorStrategy: pointerDragAnchorStrategy);
draggable.dragAnchorStrategy;
// Changes made in https://github.com/flutter/flutter/pull/79160
LongPressDraggable longPressDraggable = LongPressDraggable();
longPressDraggable = LongPressDraggable(dragAnchorStrategy: childDragAnchorStrategy);
longPressDraggable = LongPressDraggable(dragAnchorStrategy: pointerDragAnchorStrategy);
longPressDraggable.dragAnchorStrategy;
}
packages/flutter/test_fixes/material.dart
View file @
a0f7694d
...
...
@@ -286,4 +286,16 @@ void main() {
textSelectionHandleColor:
Colors
.
yellow
,
useTextSelectionTheme:
false
,
);
// Changes made in https://github.com/flutter/flutter/pull/79160
Draggable
draggable
=
Draggable
();
draggable
=
Draggable
(
dragAnchor:
DragAnchor
.
child
);
draggable
=
Draggable
(
dragAnchor:
DragAnchor
.
pointer
);
draggable
.
dragAnchor
;
// Changes made in https://github.com/flutter/flutter/pull/79160
LongPressDraggable
longPressDraggable
=
LongPressDraggable
();
longPressDraggable
=
LongPressDraggable
(
dragAnchor:
DragAnchor
.
child
);
longPressDraggable
=
LongPressDraggable
(
dragAnchor:
DragAnchor
.
pointer
);
longPressDraggable
.
dragAnchor
;
}
packages/flutter/test_fixes/material.dart.expect
View file @
a0f7694d
...
...
@@ -258,4 +258,16 @@ void main() {
ThemeData.raw(
textSelectionTheme: TextSelectionThemeData(cursorColor: Colors.blue, selectionColor: Colors.red, selectionHandleColor: Colors.yellow,),
);
// Changes made in https://github.com/flutter/flutter/pull/79160
Draggable draggable = Draggable();
draggable = Draggable(dragAnchorStrategy: childDragAnchorStrategy);
draggable = Draggable(dragAnchorStrategy: pointerDragAnchorStrategy);
draggable.dragAnchorStrategy;
// Changes made in https://github.com/flutter/flutter/pull/79160
LongPressDraggable longPressDraggable = LongPressDraggable();
longPressDraggable = LongPressDraggable(dragAnchorStrategy: childDragAnchorStrategy);
longPressDraggable = LongPressDraggable(dragAnchorStrategy: pointerDragAnchorStrategy);
longPressDraggable.dragAnchorStrategy;
}
packages/flutter/test_fixes/widgets.dart
View file @
a0f7694d
...
...
@@ -95,4 +95,16 @@ void main() {
// Changes made in https://github.com/flutter/flutter/pull/59127
const
BottomNavigationBarItem
bottomNavigationBarItem
=
BottomNavigationBarItem
(
title:
myTitle
);
bottomNavigationBarItem
.
title
;
// Changes made in https://github.com/flutter/flutter/pull/79160
Draggable
draggable
=
Draggable
();
draggable
=
Draggable
(
dragAnchor:
DragAnchor
.
child
);
draggable
=
Draggable
(
dragAnchor:
DragAnchor
.
pointer
);
draggable
.
dragAnchor
;
// Changes made in https://github.com/flutter/flutter/pull/79160
LongPressDraggable
longPressDraggable
=
LongPressDraggable
();
longPressDraggable
=
LongPressDraggable
(
dragAnchor:
DragAnchor
.
child
);
longPressDraggable
=
LongPressDraggable
(
dragAnchor:
DragAnchor
.
pointer
);
longPressDraggable
.
dragAnchor
;
}
packages/flutter/test_fixes/widgets.dart.expect
View file @
a0f7694d
...
...
@@ -95,4 +95,16 @@ void main() {
// Changes made in https://github.com/flutter/flutter/pull/59127
const BottomNavigationBarItem bottomNavigationBarItem = BottomNavigationBarItem(label: myTitle);
bottomNavigationBarItem.label;
// Changes made in https://github.com/flutter/flutter/pull/79160
Draggable draggable = Draggable();
draggable = Draggable(dragAnchorStrategy: childDragAnchorStrategy);
draggable = Draggable(dragAnchorStrategy: pointerDragAnchorStrategy);
draggable.dragAnchorStrategy;
// Changes made in https://github.com/flutter/flutter/pull/79160
LongPressDraggable longPressDraggable = LongPressDraggable();
longPressDraggable = LongPressDraggable(dragAnchorStrategy: childDragAnchorStrategy);
longPressDraggable = LongPressDraggable(dragAnchorStrategy: pointerDragAnchorStrategy);
longPressDraggable.dragAnchorStrategy;
}
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