that should also be fixable with a similar change
https://github.com/flutter/flutter/blob/e608a697c66a32d440bdb2e07b2b2c24dce7ef79/packages/flutter/lib/src/widgets/widget_inspector.dart#L1046C20-L1046C20
is the line it would be great to remove
instead you would include the lightweight Inspector widget in the tree regardless of whether 'show' is enabled when you are in debug mode
and then just listen for the change for a ValueListenable
to switch it from showing real content and being a complete no-op
that would fix cases where turning on the inspector changes the display of your app if hot reload happens to have side effects for your app (shouldn't happen but does)