Skip to content

toggling the inspector overlay on and off currently triggers a reassemble of the app #6014

@CoderDake

Description

@CoderDake

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)

Metadata

Metadata

Assignees

Labels

P3issues we think are valid but not importantscreen: inspector

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions