Unverified Commit 2aa1b6d1 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

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

parent caa56d6a
...@@ -256,7 +256,7 @@ class RenderView extends RenderObject with RenderObjectWithChildMixin<RenderBox> ...@@ -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'));
......
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