Commit 83ddd988 authored by Sam Rawlins's avatar Sam Rawlins Committed by Michael Goderbauer

Fix additional @mustCallSuper indirect overrides and mixins (#30667)

parent 49900477
......@@ -2663,6 +2663,7 @@ abstract class RenderObject extends AbstractNode with DiagnosticableTreeMixin im
@protected
@override
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
super.debugFillProperties(properties);
properties.add(DiagnosticsProperty<dynamic>('creator', debugCreator, defaultValue: null, level: DiagnosticLevel.debug));
properties.add(DiagnosticsProperty<ParentData>('parentData', parentData, tooltip: _debugCanParentUseSize == true ? 'can use size' : null, missingIfNull: true));
properties.add(DiagnosticsProperty<Constraints>('constraints', constraints, missingIfNull: true));
......
......@@ -250,6 +250,7 @@ class RenderView extends RenderObject with RenderObjectWithChildMixin<RenderBox>
}
@override
// ignore: MUST_CALL_SUPER
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
// call to ${super.debugFillProperties(description)} is omitted because the
// root superclasses don't include any interesting information for this
......
......@@ -2048,6 +2048,7 @@ class SemanticsNode extends AbstractNode with DiagnosticableTreeMixin {
@override
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
super.debugFillProperties(properties);
bool hideOwner = true;
if (_dirty) {
final bool inDirtyNodes = owner != null && owner._dirtyNodes.contains(this);
......
......@@ -35,6 +35,7 @@ class TestTree extends Object with DiagnosticableTreeMixin {
@override
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
super.debugFillProperties(properties);
if (style != null)
properties.defaultDiagnosticsTreeStyle = style;
......
......@@ -61,6 +61,7 @@ class AlwaysKeepAliveState extends State<AlwaysKeepAliveWidget>
@override
Widget build(BuildContext context) {
super.build(context);
return Text(AlwaysKeepAliveWidget.text);
}
}
......
......@@ -20,6 +20,7 @@ class PaintingBindingSpy extends BindingBase with ServicesBinding, PaintingBindi
}
@override
// ignore: MUST_CALL_SUPER
void initLicenses() {
// Do not include any licenses, because we're a test, and the LICENSE file
// doesn't get generated for tests.
......
......@@ -35,8 +35,10 @@ class AliveState extends State<Alive> with AutomaticKeepAliveClientMixin {
bool get wantKeepAlive => widget.alive;
@override
Widget build(BuildContext context) =>
Text('${widget.index}:$wantKeepAlive');
Widget build(BuildContext context) {
super.build(context);
return Text('${widget.index}:$wantKeepAlive');
}
}
typedef WhetherToKeepAlive = bool Function(int);
......
......@@ -127,6 +127,7 @@ class ProblemWidget extends StatefulWidget {
class ProblemWidgetState extends State<ProblemWidget> with AutomaticKeepAliveClientMixin<ProblemWidget> {
@override
Widget build(BuildContext context) {
super.build(context);
Widget child = Semantics(
container: true,
child: Text(widget.text),
......
......@@ -168,6 +168,7 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
}
@override
// ignore: MUST_CALL_SUPER
void initLicenses() {
// Do not include any licenses, because we're a test, and the LICENSE file
// doesn't get generated for tests.
......
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