Unverified Commit fe37426b authored by Kate Lovett's avatar Kate Lovett Committed by GitHub

Add dart fix for RenderObjectElement deprecations (#85254)

parent 17db4e20
......@@ -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
......
......@@ -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);
}
......@@ -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);
}
......@@ -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);
}
......@@ -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);
}
......@@ -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);
}
......@@ -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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment