Dont call Platform.operatingSystem in RenderView diagnostics (#37637)
This commit is contained in:
parent
caa56d6ac4
commit
2aa1b6d1ba
@ -256,7 +256,7 @@ class RenderView extends RenderObject with RenderObjectWithChildMixin<RenderBox>
|
|||||||
// root superclasses don't include any interesting information for this
|
// root superclasses don't include any interesting information for this
|
||||||
// class
|
// class
|
||||||
assert(() {
|
assert(() {
|
||||||
properties.add(DiagnosticsNode.message('debug mode enabled - ${Platform.operatingSystem}'));
|
properties.add(DiagnosticsNode.message('debug mode enabled - ${kIsWeb ? 'Web' : Platform.operatingSystem}'));
|
||||||
return true;
|
return true;
|
||||||
}());
|
}());
|
||||||
properties.add(DiagnosticsProperty<Size>('window size', _window.physicalSize, tooltip: 'in physical pixels'));
|
properties.add(DiagnosticsProperty<Size>('window size', _window.physicalSize, tooltip: 'in physical pixels'));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user