Part 2 of independent layout pipelines
Adds BuildOwner to manage the dirty list and build processing for widgets/elements, and adds a widget unit test to make sure separation is enforced. Fixes #2723
This commit is contained in:
@@ -33,6 +33,7 @@ class Rectangle extends StatelessWidget {
|
||||
|
||||
double value;
|
||||
RenderObjectToWidgetElement<RenderBox> element;
|
||||
BuildOwner owner;
|
||||
void attachWidgetTreeToRenderTree(RenderProxyBox container) {
|
||||
element = new RenderObjectToWidgetAdapter<RenderBox>(
|
||||
container: container,
|
||||
@@ -70,7 +71,7 @@ void attachWidgetTreeToRenderTree(RenderProxyBox container) {
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween
|
||||
)
|
||||
)
|
||||
).attachToRenderTree(element);
|
||||
).attachToRenderTree(owner, element);
|
||||
}
|
||||
|
||||
Duration timeBase;
|
||||
|
||||
Reference in New Issue
Block a user