Dont call Platform.operatingSystem in RenderView diagnostics (#37637)

This commit is contained in:
Jonah Williams 2019-08-05 22:13:21 -07:00 committed by GitHub
parent caa56d6ac4
commit 2aa1b6d1ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -256,7 +256,7 @@ class RenderView extends RenderObject with RenderObjectWithChildMixin<RenderBox>
// root superclasses don't include any interesting information for this
// class
assert(() {
properties.add(DiagnosticsNode.message('debug mode enabled - ${Platform.operatingSystem}'));
properties.add(DiagnosticsNode.message('debug mode enabled - ${kIsWeb ? 'Web' : Platform.operatingSystem}'));
return true;
}());
properties.add(DiagnosticsProperty<Size>('window size', _window.physicalSize, tooltip: 'in physical pixels'));