rename Element.visitChildrenForSemantics to visitOnstageChildren; fix DropdownButton (#11744)

* rename Element.visitChildrenForSemantics to debugVisitOnstageChildren

* address comments
This commit is contained in:
Yegor
2017-09-01 09:48:12 -07:00
committed by GitHub
parent aaa9d18024
commit 0793add818
5 changed files with 26 additions and 9 deletions

View File

@@ -51,7 +51,7 @@ class _DepthFirstChildIterator implements Iterator<Element> {
assert(element != null);
final List<Element> children = <Element>[];
if (skipOffstage) {
element.visitChildrenForSemantics(children.add);
element.debugVisitOnstageChildren(children.add);
} else {
element.visitChildren(children.add);
}

View File

@@ -232,7 +232,7 @@ abstract class Finder {
/// Whether this finder skips nodes that are offstage.
///
/// If this is true, then the elements are walked using
/// [Element.visitChildrenForSemantics]. This skips offstage children of
/// [Element.debugVisitOnstageChildren]. This skips offstage children of
/// [Offstage] widgets, as well as children of inactive [Route]s.
final bool skipOffstage;