mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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:
parent
73b096934a
commit
9de01b171d
@ -823,7 +823,6 @@ abstract class Component extends Widget {
|
||||
assert(_child == null);
|
||||
}
|
||||
|
||||
String _debugPreviousComponent;
|
||||
assert(() {
|
||||
_debugIsBuilding = true;
|
||||
_debugComponentBuildTree.add(this);
|
||||
@ -1137,7 +1136,8 @@ abstract class RenderObjectWrapper extends Widget {
|
||||
Widget ancestor = current.parent;
|
||||
while (ancestor != null && ancestor is Component)
|
||||
ancestor = ancestor.parent;
|
||||
current.debugValidateAncestor(ancestor);
|
||||
if (ancestor != null)
|
||||
current.debugValidateAncestor(ancestor);
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user