Unverified Commit eeebd833 authored by Jacob Richman's avatar Jacob Richman Committed by GitHub

Avoid ever creating the WidgetInspectorService outside of debug mode. (#21648)

parent 9dce4b82
......@@ -293,6 +293,7 @@ abstract class WidgetsBinding extends BindingBase with SchedulerBinding, Gesture
}
);
assert(() {
// This service extension is deprecated and will be removed by 7/1/2018.
// Use ext.flutter.inspector.show instead.
registerBoolServiceExtension(
......@@ -307,6 +308,8 @@ abstract class WidgetsBinding extends BindingBase with SchedulerBinding, Gesture
);
WidgetInspectorService.instance.initServiceExtensions(registerServiceExtension);
return true;
}());
}
Future<Null> _forceRebuild() {
......
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