Hello!
I have been working on a dart dev tool extension for my application but I am having difficulty getting access to the widget tree of the app that I am running. I tried getting access to it through the serviceManager in DevToolsExtension but I wasn't able to successfully.
I see that in inspector_v2 it is able to get access to the rootTree through the InspectorController. I was wondering if it would be possible to expose this API so that developers could easily navigate through the tree and make dart dev tool extensions.
Currently the only way I can think of doing this is through exposing the root widget through a logger or platform channel that could be used as a median through the app and dart devtool extension.
If this is already implemented I was hoping you could share the code snippet so that I can add it to my package.
Hello!
I have been working on a dart dev tool extension for my application but I am having difficulty getting access to the widget tree of the app that I am running. I tried getting access to it through the
serviceManagerinDevToolsExtensionbut I wasn't able to successfully.I see that in inspector_v2 it is able to get access to the rootTree through the InspectorController. I was wondering if it would be possible to expose this API so that developers could easily navigate through the tree and make dart dev tool extensions.
Currently the only way I can think of doing this is through exposing the root widget through a logger or platform channel that could be used as a median through the app and dart devtool extension.
If this is already implemented I was hoping you could share the code snippet so that I can add it to my package.