Fix fn3 build errors
Add a LeafRenderObjectElement, fix a test to use the new contract.
This commit is contained in:
@@ -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();
|
||||
|
||||
class OneChildRenderObjectElement<T extends OneChildRenderObjectWidget> extends RenderObjectElement<T> {
|
||||
|
||||
@@ -10,10 +10,11 @@ class TestComponentConfig extends StatefulComponent {
|
||||
final Widget left;
|
||||
final Widget right;
|
||||
|
||||
TestComponentState createState() => new TestComponentState();
|
||||
TestComponentState createState() => new TestComponentState(this);
|
||||
}
|
||||
|
||||
class TestComponentState extends ComponentState<TestComponentConfig> {
|
||||
TestComponentState(TestComponentConfig config): super(config);
|
||||
bool _showLeft = true;
|
||||
|
||||
void flip() {
|
||||
|
||||
Reference in New Issue
Block a user