You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Widget inspection Magnifying glass experience broken in Multi View app #5931
widgets_static.dart and widgets_dynamic.dart do not use a MaterialApp/CupertinoApp/WidgetsApp widget. That's the widget that inserts the WidgetInspector widget in the tree [1]. So, it is expected that these don't support widget inspecting (these examples also wouldn't support inspecting if they were just single view).
widgets_counter.dart is the more interesting one. It currently uses multiple MaterialApp/CupertinoApp/WidgetsApp widgets (one for each view), so there will be multiple WidgetInspector widgets as well. I am not sure if the WidgetInspector widget was designed for this. That'd be something to audit.
changed the title [-]Widget inspection Magnifying broken in Multi View app[/-][+]Widget inspection Magnifying glass experience broken in Multi View app[/+]on Jul 11, 2023
Activity
CoderDake commentedon Jun 20, 2023
It looks like the magnifying glass and inspection works on some multi view but not others.
For the https://github.com/goderbauer/mvp repo,
widgets_counter.dartexample works with widget inspectionwidgets_static.dartDOES NOT work with widget inspectionwidgets_dynamic.dartDOES NOT work with widget inspectiongoderbauer commentedon Jun 20, 2023
widgets_static.dartandwidgets_dynamic.dartdo not use a MaterialApp/CupertinoApp/WidgetsApp widget. That's the widget that inserts theWidgetInspectorwidget in the tree [1]. So, it is expected that these don't support widget inspecting (these examples also wouldn't support inspecting if they were just single view).widgets_counter.dartis the more interesting one. It currently uses multiple MaterialApp/CupertinoApp/WidgetsApp widgets (one for each view), so there will be multipleWidgetInspectorwidgets as well. I am not sure if theWidgetInspectorwidget was designed for this. That'd be something to audit.[1] https://github.com/flutter/flutter/blob/6ae22ef4e9f7ef1e26c248d23338f38c26bde25d/packages/flutter/lib/src/widgets/app.dart#L1705
CoderDake commentedon Jun 20, 2023
Note: in the app that does work the state of the magnifying glasses is a bit confusing. The states between windows could be unified.
[-]Widget inspection Magnifying broken in Multi View app[/-][+]Widget inspection Magnifying glass experience broken in Multi View app[/+]Shared state to support multi screen inspection (#129452)
Shared state to support multi screen inspection (flutter#129452)
Shared state to support multi screen inspection (flutter#129452)