Commit ed03e96b authored by Kris Giesing's avatar Kris Giesing

Fix spinning_mixed widget example, plus minor style fix

parent 4df24abb
...@@ -33,7 +33,7 @@ class Rectangle extends StatelessWidget { ...@@ -33,7 +33,7 @@ class Rectangle extends StatelessWidget {
double value; double value;
RenderObjectToWidgetElement<RenderBox> element; RenderObjectToWidgetElement<RenderBox> element;
BuildOwner owner; BuildOwner owner = new BuildOwner();
void attachWidgetTreeToRenderTree(RenderProxyBox container) { void attachWidgetTreeToRenderTree(RenderProxyBox container) {
element = new RenderObjectToWidgetAdapter<RenderBox>( element = new RenderObjectToWidgetAdapter<RenderBox>(
container: container, container: container,
......
...@@ -807,9 +807,9 @@ abstract class Element implements BuildContext { ...@@ -807,9 +807,9 @@ abstract class Element implements BuildContext {
Widget get widget => _widget; Widget get widget => _widget;
Widget _widget; Widget _widget;
BuildOwner _owner;
/// The owner for this node (null if unattached). /// The owner for this node (null if unattached).
BuildOwner get owner => _owner; BuildOwner get owner => _owner;
BuildOwner _owner;
bool _active = false; bool _active = false;
......
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