Commit 205335f0 authored by Hixie's avatar Hixie

Fix fn3 build errors

Add a LeafRenderObjectElement, fix a test to use the new contract.
parent 547c324d
...@@ -466,6 +466,10 @@ class RenderObjectElement<T extends RenderObjectWidget> extends Element<T> { ...@@ -466,6 +466,10 @@ class RenderObjectElement<T extends RenderObjectWidget> extends Element<T> {
} }
} }
class LeafRenderObjectElement<T extends RenderObjectWidget> extends RenderObjectElement<T> {
LeafRenderObjectElement(T widget): super(widget);
}
final Object _uniqueChild = new Object(); final Object _uniqueChild = new Object();
class OneChildRenderObjectElement<T extends OneChildRenderObjectWidget> extends RenderObjectElement<T> { class OneChildRenderObjectElement<T extends OneChildRenderObjectWidget> extends RenderObjectElement<T> {
......
...@@ -10,10 +10,11 @@ class TestComponentConfig extends StatefulComponent { ...@@ -10,10 +10,11 @@ class TestComponentConfig extends StatefulComponent {
final Widget left; final Widget left;
final Widget right; final Widget right;
TestComponentState createState() => new TestComponentState(); TestComponentState createState() => new TestComponentState(this);
} }
class TestComponentState extends ComponentState<TestComponentConfig> { class TestComponentState extends ComponentState<TestComponentConfig> {
TestComponentState(TestComponentConfig config): super(config);
bool _showLeft = true; bool _showLeft = true;
void flip() { void flip() {
......
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