Skip to content

Exposing widget tree through serviceManager #8150

@JoseAlba

Description

@JoseAlba

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2important to work on, but not at the top of the work list.devtools extensionsIssues related to DevTools extensions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions