Open stevemessick opened 1 year ago
When we talk about "open the inspector", you mean open the inspector tab in the editor, right?
If I get it right:
When we talk about "open the inspector", you mean open the inspector tab in the editor, right?
Yes.
I actually was testing the same app on two different devices.
Just finished some investigations. Each time a new FlutterApp
gets run, a new listener will be attached to the top, which overrides the previous one. Thus only the last inspector will be displayed.
https://github.com/flutter/flutter-intellij/blob/16749f9cbf498621e5a64410ea78a8264f2a50dc/flutter-idea/src/io/flutter/view/FlutterView.java#L525-L529
https://github.com/flutter/flutter-intellij/blob/16749f9cbf498621e5a64410ea78a8264f2a50dc/flutter-idea/src/io/flutter/view/FlutterView.java#L752-L754
It requires a significant change from a single FlutterApp
to a collection of FlutterApp
s. However, I just tried to update it and there are some race-condition issues that need to be resolved.
cc @helin24 if you're interested and more familiar with the suggested changes.
If you open the inspector then start multiple apps they all show up in the embedded inspector view. But if you start multiple apps then open the inspector you only see the currently active app. There appears to be no way to add another without restarting it.
cc @AlexV525