ancestor is Flex assert in widgets/basic.dart
We didn't mean to flag null ancestors for this debugging check. Fixes #1140
This commit is contained in:
@@ -823,7 +823,6 @@ abstract class Component extends Widget {
|
|||||||
assert(_child == null);
|
assert(_child == null);
|
||||||
}
|
}
|
||||||
|
|
||||||
String _debugPreviousComponent;
|
|
||||||
assert(() {
|
assert(() {
|
||||||
_debugIsBuilding = true;
|
_debugIsBuilding = true;
|
||||||
_debugComponentBuildTree.add(this);
|
_debugComponentBuildTree.add(this);
|
||||||
@@ -1137,7 +1136,8 @@ abstract class RenderObjectWrapper extends Widget {
|
|||||||
Widget ancestor = current.parent;
|
Widget ancestor = current.parent;
|
||||||
while (ancestor != null && ancestor is Component)
|
while (ancestor != null && ancestor is Component)
|
||||||
ancestor = ancestor.parent;
|
ancestor = ancestor.parent;
|
||||||
current.debugValidateAncestor(ancestor);
|
if (ancestor != null)
|
||||||
|
current.debugValidateAncestor(ancestor);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user