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
fe37426b
Unverified
Commit
fe37426b
authored
Jun 25, 2021
by
Kate Lovett
Committed by
GitHub
Jun 25, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add dart fix for RenderObjectElement deprecations (#85254)
parent
17db4e20
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
372 additions
and
0 deletions
+372
-0
fix_data.yaml
packages/flutter/lib/fix_data.yaml
+198
-0
cupertino.dart
packages/flutter/test_fixes/cupertino.dart
+29
-0
cupertino.dart.expect
packages/flutter/test_fixes/cupertino.dart.expect
+29
-0
material.dart
packages/flutter/test_fixes/material.dart
+29
-0
material.dart.expect
packages/flutter/test_fixes/material.dart.expect
+29
-0
widgets.dart
packages/flutter/test_fixes/widgets.dart
+29
-0
widgets.dart.expect
packages/flutter/test_fixes/widgets.dart.expect
+29
-0
No files found.
packages/flutter/lib/fix_data.yaml
View file @
fe37426b
...
...
@@ -15,6 +15,204 @@
version
:
1
transforms
:
# Changes made in https://github.com/flutter/flutter/pull/64254
-
title
:
"
Migrate
to
'removeRenderObjectChild'"
date
:
2020-08-20
element
:
uris
:
[
'
cupertino.dart'
,
'
widgets.dart'
,
'
material.dart'
]
method
:
'
removeChildRenderObject'
inClass
:
'
RenderObjectToWidgetElement'
changes
:
-
kind
:
'
rename'
newName
:
'
removeRenderObjectChild'
# Changes made in https://github.com/flutter/flutter/pull/64254
-
title
:
"
Migrate
to
'moveRenderObjectChild'"
date
:
2020-08-20
element
:
uris
:
[
'
cupertino.dart'
,
'
widgets.dart'
,
'
material.dart'
]
method
:
'
moveChildRenderObject'
inClass
:
'
RenderObjectToWidgetElement'
changes
:
-
kind
:
'
rename'
newName
:
'
moveRenderObjectChild'
# Changes made in https://github.com/flutter/flutter/pull/64254
-
title
:
"
Migrate
to
'insertRenderObjectChild'"
date
:
2020-08-20
element
:
uris
:
[
'
cupertino.dart'
,
'
widgets.dart'
,
'
material.dart'
]
method
:
'
insertChildRenderObject'
inClass
:
'
RenderObjectToWidgetElement'
changes
:
-
kind
:
'
rename'
newName
:
'
insertRenderObjectChild'
# Changes made in https://github.com/flutter/flutter/pull/64254
-
title
:
"
Migrate
to
'removeRenderObjectChild'"
date
:
2020-08-20
element
:
uris
:
[
'
cupertino.dart'
,
'
widgets.dart'
,
'
material.dart'
]
method
:
'
removeChildRenderObject'
inClass
:
'
SliverMultiBoxAdaptorElement'
changes
:
-
kind
:
'
rename'
newName
:
'
removeRenderObjectChild'
# Changes made in https://github.com/flutter/flutter/pull/64254
-
title
:
"
Migrate
to
'moveRenderObjectChild'"
date
:
2020-08-20
element
:
uris
:
[
'
cupertino.dart'
,
'
widgets.dart'
,
'
material.dart'
]
method
:
'
moveChildRenderObject'
inClass
:
'
SliverMultiBoxAdaptorElement'
changes
:
-
kind
:
'
rename'
newName
:
'
moveRenderObjectChild'
# Changes made in https://github.com/flutter/flutter/pull/64254
-
title
:
"
Migrate
to
'insertRenderObjectChild'"
date
:
2020-08-20
element
:
uris
:
[
'
cupertino.dart'
,
'
widgets.dart'
,
'
material.dart'
]
method
:
'
insertChildRenderObject'
inClass
:
'
SliverMultiBoxAdaptorElement'
changes
:
-
kind
:
'
rename'
newName
:
'
insertRenderObjectChild'
# Changes made in https://github.com/flutter/flutter/pull/64254
-
title
:
"
Migrate
to
'removeRenderObjectChild'"
date
:
2020-08-20
element
:
uris
:
[
'
cupertino.dart'
,
'
widgets.dart'
,
'
material.dart'
]
method
:
'
removeChildRenderObject'
inClass
:
'
SingleChildRenderObjectElement'
changes
:
-
kind
:
'
rename'
newName
:
'
removeRenderObjectChild'
# Changes made in https://github.com/flutter/flutter/pull/64254
-
title
:
"
Migrate
to
'moveRenderObjectChild'"
date
:
2020-08-20
element
:
uris
:
[
'
cupertino.dart'
,
'
widgets.dart'
,
'
material.dart'
]
method
:
'
moveChildRenderObject'
inClass
:
'
SingleChildRenderObjectElement'
changes
:
-
kind
:
'
rename'
newName
:
'
moveRenderObjectChild'
# Changes made in https://github.com/flutter/flutter/pull/64254
-
title
:
"
Migrate
to
'insertRenderObjectChild'"
date
:
2020-08-20
element
:
uris
:
[
'
cupertino.dart'
,
'
widgets.dart'
,
'
material.dart'
]
method
:
'
insertChildRenderObject'
inClass
:
'
SingleChildRenderObjectElement'
changes
:
-
kind
:
'
rename'
newName
:
'
insertRenderObjectChild'
# Changes made in https://github.com/flutter/flutter/pull/64254
-
title
:
"
Migrate
to
'removeRenderObjectChild'"
date
:
2020-08-20
element
:
uris
:
[
'
cupertino.dart'
,
'
widgets.dart'
,
'
material.dart'
]
method
:
'
removeChildRenderObject'
inClass
:
'
MultiChildRenderObjectElement'
changes
:
-
kind
:
'
rename'
newName
:
'
removeRenderObjectChild'
# Changes made in https://github.com/flutter/flutter/pull/64254
-
title
:
"
Migrate
to
'moveRenderObjectChild'"
date
:
2020-08-20
element
:
uris
:
[
'
cupertino.dart'
,
'
widgets.dart'
,
'
material.dart'
]
method
:
'
moveChildRenderObject'
inClass
:
'
MultiChildRenderObjectElement'
changes
:
-
kind
:
'
rename'
newName
:
'
moveRenderObjectChild'
# Changes made in https://github.com/flutter/flutter/pull/64254
-
title
:
"
Migrate
to
'insertRenderObjectChild'"
date
:
2020-08-20
element
:
uris
:
[
'
cupertino.dart'
,
'
widgets.dart'
,
'
material.dart'
]
method
:
'
insertChildRenderObject'
inClass
:
'
MultiChildRenderObjectElement'
changes
:
-
kind
:
'
rename'
newName
:
'
insertRenderObjectChild'
# Changes made in https://github.com/flutter/flutter/pull/64254
-
title
:
"
Migrate
to
'removeRenderObjectChild'"
date
:
2020-08-20
element
:
uris
:
[
'
cupertino.dart'
,
'
widgets.dart'
,
'
material.dart'
]
method
:
'
removeChildRenderObject'
inClass
:
'
ListWheelElement'
changes
:
-
kind
:
'
rename'
newName
:
'
removeRenderObjectChild'
# Changes made in https://github.com/flutter/flutter/pull/64254
-
title
:
"
Migrate
to
'moveRenderObjectChild'"
date
:
2020-08-20
element
:
uris
:
[
'
cupertino.dart'
,
'
widgets.dart'
,
'
material.dart'
]
method
:
'
moveChildRenderObject'
inClass
:
'
ListWheelElement'
changes
:
-
kind
:
'
rename'
newName
:
'
moveRenderObjectChild'
# Changes made in https://github.com/flutter/flutter/pull/64254
-
title
:
"
Migrate
to
'insertRenderObjectChild'"
date
:
2020-08-20
element
:
uris
:
[
'
cupertino.dart'
,
'
widgets.dart'
,
'
material.dart'
]
method
:
'
insertChildRenderObject'
inClass
:
'
ListWheelElement'
changes
:
-
kind
:
'
rename'
newName
:
'
insertRenderObjectChild'
# Changes made in https://github.com/flutter/flutter/pull/64254
-
title
:
"
Migrate
to
'removeRenderObjectChild'"
date
:
2020-08-20
element
:
uris
:
[
'
cupertino.dart'
,
'
widgets.dart'
,
'
material.dart'
]
method
:
'
removeChildRenderObject'
inClass
:
'
LeafRenderObjectElement'
changes
:
-
kind
:
'
rename'
newName
:
'
removeRenderObjectChild'
# Changes made in https://github.com/flutter/flutter/pull/64254
-
title
:
"
Migrate
to
'moveRenderObjectChild'"
date
:
2020-08-20
element
:
uris
:
[
'
cupertino.dart'
,
'
widgets.dart'
,
'
material.dart'
]
method
:
'
moveChildRenderObject'
inClass
:
'
LeafRenderObjectElement'
changes
:
-
kind
:
'
rename'
newName
:
'
moveRenderObjectChild'
# Changes made in https://github.com/flutter/flutter/pull/64254
-
title
:
"
Migrate
to
'insertRenderObjectChild'"
date
:
2020-08-20
element
:
uris
:
[
'
cupertino.dart'
,
'
widgets.dart'
,
'
material.dart'
]
method
:
'
insertChildRenderObject'
inClass
:
'
LeafRenderObjectElement'
changes
:
-
kind
:
'
rename'
newName
:
'
insertRenderObjectChild'
# Changes made in https://github.com/flutter/flutter/pull/60320
-
title
:
"
Migrate
to
'viewId'"
date
:
2020-07-05
...
...
packages/flutter/test_fixes/cupertino.dart
View file @
fe37426b
...
...
@@ -7,6 +7,9 @@ import 'package:flutter/cupertino.dart';
void
main
(
)
{
// Generic reference variables.
BuildContext
context
;
RenderObjectWidget
renderObjectWidget
;
RenderObject
renderObject
;
Object
object
;
// Change made in https://github.com/flutter/flutter/pull/41859
const
CupertinoTextThemeData
themeData
=
CupertinoTextThemeData
(
brightness:
Brightness
.
dark
);
...
...
@@ -139,4 +142,30 @@ void main() {
longPressDraggable
=
LongPressDraggable
(
dragAnchor:
DragAnchor
.
child
);
longPressDraggable
=
LongPressDraggable
(
dragAnchor:
DragAnchor
.
pointer
);
longPressDraggable
.
dragAnchor
;
// Changes made in https://github.com/flutter/flutter/pull/64254
final
LeafRenderObjectElement
leafElement
=
LeafRenderObjectElement
();
leafElement
.
insertChildRenderObject
(
renderObject
,
object
);
leafElement
.
moveChildRenderObject
(
renderObject
,
object
);
leafElement
.
removeChildRenderObject
(
renderObject
);
final
ListWheelElement
listWheelElement
=
ListWheelElement
();
listWheelElement
.
insertChildRenderObject
(
renderObject
,
object
);
listWheelElement
.
moveChildRenderObject
(
renderObject
,
object
);
listWheelElement
.
removeChildRenderObject
(
renderObject
);
final
MultiChildRenderObjectElement
multiChildRenderObjectElement
=
MultiChildRenderObjectElement
();
multiChildRenderObjectElement
.
insertChildRenderObject
(
renderObject
,
object
);
multiChildRenderObjectElement
.
moveChildRenderObject
(
renderObject
,
object
);
multiChildRenderObjectElement
.
removeChildRenderObject
(
renderObject
);
final
SingleChildRenderObjectElement
singleChildRenderObjectElement
=
SingleChildRenderObjectElement
();
singleChildRenderObjectElement
.
insertChildRenderObject
(
renderObject
,
object
);
singleChildRenderObjectElement
.
moveChildRenderObject
(
renderObject
,
object
);
singleChildRenderObjectElement
.
removeChildRenderObject
(
renderObject
);
final
SliverMultiBoxAdaptorElement
sliverMultiBoxAdaptorElement
=
SliverMultiBoxAdaptorElement
();
sliverMultiBoxAdaptorElement
.
insertChildRenderObject
(
renderObject
,
object
);
sliverMultiBoxAdaptorElement
.
moveChildRenderObject
(
renderObject
,
object
);
sliverMultiBoxAdaptorElement
.
removeChildRenderObject
(
renderObject
);
final
RenderObjectToWidgetElement
renderObjectToWidgetElement
=
RenderObjectToWidgetElement
(
widget
);
renderObjectToWidgetElement
.
insertChildRenderObject
(
renderObject
,
object
);
renderObjectToWidgetElement
.
moveChildRenderObject
(
renderObject
,
object
);
renderObjectToWidgetElement
.
removeChildRenderObject
(
renderObject
);
}
packages/flutter/test_fixes/cupertino.dart.expect
View file @
fe37426b
...
...
@@ -7,6 +7,9 @@ import 'package:flutter/cupertino.dart';
void main() {
// Generic reference variables.
BuildContext context;
RenderObjectWidget renderObjectWidget;
RenderObject renderObject;
Object object;
// Change made in https://github.com/flutter/flutter/pull/41859
const CupertinoTextThemeData themeData = CupertinoTextThemeData();
...
...
@@ -139,4 +142,30 @@ void main() {
longPressDraggable = LongPressDraggable(dragAnchorStrategy: childDragAnchorStrategy);
longPressDraggable = LongPressDraggable(dragAnchorStrategy: pointerDragAnchorStrategy);
longPressDraggable.dragAnchorStrategy;
// Changes made in https://github.com/flutter/flutter/pull/64254
final LeafRenderObjectElement leafElement = LeafRenderObjectElement();
leafElement.insertRenderObjectChild(renderObject, object);
leafElement.moveRenderObjectChild(renderObject, object);
leafElement.removeRenderObjectChild(renderObject);
final ListWheelElement listWheelElement = ListWheelElement();
listWheelElement.insertRenderObjectChild(renderObject, object);
listWheelElement.moveRenderObjectChild(renderObject, object);
listWheelElement.removeRenderObjectChild(renderObject);
final MultiChildRenderObjectElement multiChildRenderObjectElement = MultiChildRenderObjectElement();
multiChildRenderObjectElement.insertRenderObjectChild(renderObject, object);
multiChildRenderObjectElement.moveRenderObjectChild(renderObject, object);
multiChildRenderObjectElement.removeRenderObjectChild(renderObject);
final SingleChildRenderObjectElement singleChildRenderObjectElement = SingleChildRenderObjectElement();
singleChildRenderObjectElement.insertRenderObjectChild(renderObject, object);
singleChildRenderObjectElement.moveRenderObjectChild(renderObject, object);
singleChildRenderObjectElement.removeRenderObjectChild(renderObject);
final SliverMultiBoxAdaptorElement sliverMultiBoxAdaptorElement = SliverMultiBoxAdaptorElement();
sliverMultiBoxAdaptorElement.insertRenderObjectChild(renderObject, object);
sliverMultiBoxAdaptorElement.moveRenderObjectChild(renderObject, object);
sliverMultiBoxAdaptorElement.removeRenderObjectChild(renderObject);
final RenderObjectToWidgetElement renderObjectToWidgetElement = RenderObjectToWidgetElement(widget);
renderObjectToWidgetElement.insertRenderObjectChild(renderObject, object);
renderObjectToWidgetElement.moveRenderObjectChild(renderObject, object);
renderObjectToWidgetElement.removeRenderObjectChild(renderObject);
}
packages/flutter/test_fixes/material.dart
View file @
fe37426b
...
...
@@ -7,6 +7,9 @@ import 'package:flutter/material.dart';
void
main
(
)
{
// Generic reference variables.
BuildContext
context
;
RenderObjectWidget
renderObjectWidget
;
RenderObject
renderObject
;
Object
object
;
// Changes made in https://github.com/flutter/flutter/pull/26259
const
Scaffold
scaffold
=
Scaffold
(
resizeToAvoidBottomPadding:
true
);
...
...
@@ -301,4 +304,30 @@ void main() {
longPressDraggable
=
LongPressDraggable
(
dragAnchor:
DragAnchor
.
child
);
longPressDraggable
=
LongPressDraggable
(
dragAnchor:
DragAnchor
.
pointer
);
longPressDraggable
.
dragAnchor
;
// Changes made in https://github.com/flutter/flutter/pull/64254
final
LeafRenderObjectElement
leafElement
=
LeafRenderObjectElement
();
leafElement
.
insertChildRenderObject
(
renderObject
,
object
);
leafElement
.
moveChildRenderObject
(
renderObject
,
object
);
leafElement
.
removeChildRenderObject
(
renderObject
);
final
ListWheelElement
listWheelElement
=
ListWheelElement
();
listWheelElement
.
insertChildRenderObject
(
renderObject
,
object
);
listWheelElement
.
moveChildRenderObject
(
renderObject
,
object
);
listWheelElement
.
removeChildRenderObject
(
renderObject
);
final
MultiChildRenderObjectElement
multiChildRenderObjectElement
=
MultiChildRenderObjectElement
();
multiChildRenderObjectElement
.
insertChildRenderObject
(
renderObject
,
object
);
multiChildRenderObjectElement
.
moveChildRenderObject
(
renderObject
,
object
);
multiChildRenderObjectElement
.
removeChildRenderObject
(
renderObject
);
final
SingleChildRenderObjectElement
singleChildRenderObjectElement
=
SingleChildRenderObjectElement
();
singleChildRenderObjectElement
.
insertChildRenderObject
(
renderObject
,
object
);
singleChildRenderObjectElement
.
moveChildRenderObject
(
renderObject
,
object
);
singleChildRenderObjectElement
.
removeChildRenderObject
(
renderObject
);
final
SliverMultiBoxAdaptorElement
sliverMultiBoxAdaptorElement
=
SliverMultiBoxAdaptorElement
();
sliverMultiBoxAdaptorElement
.
insertChildRenderObject
(
renderObject
,
object
);
sliverMultiBoxAdaptorElement
.
moveChildRenderObject
(
renderObject
,
object
);
sliverMultiBoxAdaptorElement
.
removeChildRenderObject
(
renderObject
);
final
RenderObjectToWidgetElement
renderObjectToWidgetElement
=
RenderObjectToWidgetElement
(
widget
);
renderObjectToWidgetElement
.
insertChildRenderObject
(
renderObject
,
object
);
renderObjectToWidgetElement
.
moveChildRenderObject
(
renderObject
,
object
);
renderObjectToWidgetElement
.
removeChildRenderObject
(
renderObject
);
}
packages/flutter/test_fixes/material.dart.expect
View file @
fe37426b
...
...
@@ -7,6 +7,9 @@ import 'package:flutter/material.dart';
void main() {
// Generic reference variables.
BuildContext context;
RenderObjectWidget renderObjectWidget;
RenderObject renderObject;
Object object;
// Changes made in https://github.com/flutter/flutter/pull/26259
const Scaffold scaffold = Scaffold(resizeToAvoidBottomInset: true);
...
...
@@ -273,4 +276,30 @@ void main() {
longPressDraggable = LongPressDraggable(dragAnchorStrategy: childDragAnchorStrategy);
longPressDraggable = LongPressDraggable(dragAnchorStrategy: pointerDragAnchorStrategy);
longPressDraggable.dragAnchorStrategy;
// Changes made in https://github.com/flutter/flutter/pull/64254
final LeafRenderObjectElement leafElement = LeafRenderObjectElement();
leafElement.insertRenderObjectChild(renderObject, object);
leafElement.moveRenderObjectChild(renderObject, object);
leafElement.removeRenderObjectChild(renderObject);
final ListWheelElement listWheelElement = ListWheelElement();
listWheelElement.insertRenderObjectChild(renderObject, object);
listWheelElement.moveRenderObjectChild(renderObject, object);
listWheelElement.removeRenderObjectChild(renderObject);
final MultiChildRenderObjectElement multiChildRenderObjectElement = MultiChildRenderObjectElement();
multiChildRenderObjectElement.insertRenderObjectChild(renderObject, object);
multiChildRenderObjectElement.moveRenderObjectChild(renderObject, object);
multiChildRenderObjectElement.removeRenderObjectChild(renderObject);
final SingleChildRenderObjectElement singleChildRenderObjectElement = SingleChildRenderObjectElement();
singleChildRenderObjectElement.insertRenderObjectChild(renderObject, object);
singleChildRenderObjectElement.moveRenderObjectChild(renderObject, object);
singleChildRenderObjectElement.removeRenderObjectChild(renderObject);
final SliverMultiBoxAdaptorElement sliverMultiBoxAdaptorElement = SliverMultiBoxAdaptorElement();
sliverMultiBoxAdaptorElement.insertRenderObjectChild(renderObject, object);
sliverMultiBoxAdaptorElement.moveRenderObjectChild(renderObject, object);
sliverMultiBoxAdaptorElement.removeRenderObjectChild(renderObject);
final RenderObjectToWidgetElement renderObjectToWidgetElement = RenderObjectToWidgetElement(widget);
renderObjectToWidgetElement.insertRenderObjectChild(renderObject, object);
renderObjectToWidgetElement.moveRenderObjectChild(renderObject, object);
renderObjectToWidgetElement.removeRenderObjectChild(renderObject);
}
packages/flutter/test_fixes/widgets.dart
View file @
fe37426b
...
...
@@ -7,6 +7,9 @@ import 'package:flutter/widgets.dart';
void
main
(
)
{
// Generic reference variables.
BuildContext
context
;
RenderObjectWidget
renderObjectWidget
;
RenderObject
renderObject
;
Object
object
;
// Changes made in https://github.com/flutter/flutter/pull/44189
const
Element
element
=
Element
(
myWidget
);
...
...
@@ -107,4 +110,30 @@ void main() {
longPressDraggable
=
LongPressDraggable
(
dragAnchor:
DragAnchor
.
child
);
longPressDraggable
=
LongPressDraggable
(
dragAnchor:
DragAnchor
.
pointer
);
longPressDraggable
.
dragAnchor
;
// Changes made in https://github.com/flutter/flutter/pull/64254
final
LeafRenderObjectElement
leafElement
=
LeafRenderObjectElement
();
leafElement
.
insertChildRenderObject
(
renderObject
,
object
);
leafElement
.
moveChildRenderObject
(
renderObject
,
object
);
leafElement
.
removeChildRenderObject
(
renderObject
);
final
ListWheelElement
listWheelElement
=
ListWheelElement
();
listWheelElement
.
insertChildRenderObject
(
renderObject
,
object
);
listWheelElement
.
moveChildRenderObject
(
renderObject
,
object
);
listWheelElement
.
removeChildRenderObject
(
renderObject
);
final
MultiChildRenderObjectElement
multiChildRenderObjectElement
=
MultiChildRenderObjectElement
();
multiChildRenderObjectElement
.
insertChildRenderObject
(
renderObject
,
object
);
multiChildRenderObjectElement
.
moveChildRenderObject
(
renderObject
,
object
);
multiChildRenderObjectElement
.
removeChildRenderObject
(
renderObject
);
final
SingleChildRenderObjectElement
singleChildRenderObjectElement
=
SingleChildRenderObjectElement
();
singleChildRenderObjectElement
.
insertChildRenderObject
(
renderObject
,
object
);
singleChildRenderObjectElement
.
moveChildRenderObject
(
renderObject
,
object
);
singleChildRenderObjectElement
.
removeChildRenderObject
(
renderObject
);
final
SliverMultiBoxAdaptorElement
sliverMultiBoxAdaptorElement
=
SliverMultiBoxAdaptorElement
();
sliverMultiBoxAdaptorElement
.
insertChildRenderObject
(
renderObject
,
object
);
sliverMultiBoxAdaptorElement
.
moveChildRenderObject
(
renderObject
,
object
);
sliverMultiBoxAdaptorElement
.
removeChildRenderObject
(
renderObject
);
final
RenderObjectToWidgetElement
renderObjectToWidgetElement
=
RenderObjectToWidgetElement
(
widget
);
renderObjectToWidgetElement
.
insertChildRenderObject
(
renderObject
,
object
);
renderObjectToWidgetElement
.
moveChildRenderObject
(
renderObject
,
object
);
renderObjectToWidgetElement
.
removeChildRenderObject
(
renderObject
);
}
packages/flutter/test_fixes/widgets.dart.expect
View file @
fe37426b
...
...
@@ -7,6 +7,9 @@ import 'package:flutter/widgets.dart';
void main() {
// Generic reference variables.
BuildContext context;
RenderObjectWidget renderObjectWidget;
RenderObject renderObject;
Object object;
// Changes made in https://github.com/flutter/flutter/pull/44189
const Element element = Element(myWidget);
...
...
@@ -107,4 +110,30 @@ void main() {
longPressDraggable = LongPressDraggable(dragAnchorStrategy: childDragAnchorStrategy);
longPressDraggable = LongPressDraggable(dragAnchorStrategy: pointerDragAnchorStrategy);
longPressDraggable.dragAnchorStrategy;
// Changes made in https://github.com/flutter/flutter/pull/64254
final LeafRenderObjectElement leafElement = LeafRenderObjectElement();
leafElement.insertRenderObjectChild(renderObject, object);
leafElement.moveRenderObjectChild(renderObject, object);
leafElement.removeRenderObjectChild(renderObject);
final ListWheelElement listWheelElement = ListWheelElement();
listWheelElement.insertRenderObjectChild(renderObject, object);
listWheelElement.moveRenderObjectChild(renderObject, object);
listWheelElement.removeRenderObjectChild(renderObject);
final MultiChildRenderObjectElement multiChildRenderObjectElement = MultiChildRenderObjectElement();
multiChildRenderObjectElement.insertRenderObjectChild(renderObject, object);
multiChildRenderObjectElement.moveRenderObjectChild(renderObject, object);
multiChildRenderObjectElement.removeRenderObjectChild(renderObject);
final SingleChildRenderObjectElement singleChildRenderObjectElement = SingleChildRenderObjectElement();
singleChildRenderObjectElement.insertRenderObjectChild(renderObject, object);
singleChildRenderObjectElement.moveRenderObjectChild(renderObject, object);
singleChildRenderObjectElement.removeRenderObjectChild(renderObject);
final SliverMultiBoxAdaptorElement sliverMultiBoxAdaptorElement = SliverMultiBoxAdaptorElement();
sliverMultiBoxAdaptorElement.insertRenderObjectChild(renderObject, object);
sliverMultiBoxAdaptorElement.moveRenderObjectChild(renderObject, object);
sliverMultiBoxAdaptorElement.removeRenderObjectChild(renderObject);
final RenderObjectToWidgetElement renderObjectToWidgetElement = RenderObjectToWidgetElement(widget);
renderObjectToWidgetElement.insertRenderObjectChild(renderObject, object);
renderObjectToWidgetElement.moveRenderObjectChild(renderObject, object);
renderObjectToWidgetElement.removeRenderObjectChild(renderObject);
}
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