Skip to content

feat: add command to fetch render tree by widget type #119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Alpaca00
Copy link

Hi there,

this is a client-side implementation for this PR

@saikrishna321
Copy link
Member

@Alpaca00 Thanks for the PR. Is widgetType mandatory? Reason to ask is if we can get the entire tree then we can build an inspector.

@Alpaca00
Copy link
Author

@saikrishna321
I made this parameter optional.
Regarding the inspector - it's a great idea, but it should offer something better than the existing Flutter Inspector.
One more nuance is that the rendering doesn't capture properties of all widgets, since some of them encapsulate those properties.

Here's an example of the render tree response from the root without any parameters for demo-app
https://gist.github.com/Alpaca00/dd56540be081af049ed8e6b6ca1893db

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants