build method
Implementation
@override
SemanticNode build(SceneNode node, List<SemanticNode> children) {
// Keep the buttons — the leading back button and the action buttons
// (search, menu, …) live in the AppBar's subtree. Dropping them (the old
// `actions: const []`) made back-navigation and app-bar actions invisible.
final buttons = <SemanticNode>[];
void collect(List<SemanticNode> ns) {
for (final n in ns) {
if (n is SemanticButton || (n is SemanticContainer && n.hint == 'tabs')) {
buttons.add(n);
} else {
collect(n.children);
}
}
}
collect(children);
return SemanticAppBar(
glintId: node.glintId,
title: _titleIn(children),
actions: buttons,
);
}