-
Notifications
You must be signed in to change notification settings - Fork 325
Show Semantics Tree in Flutter Inspector #1655
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
Comments
While we are adding more trees, would seeing the Layer tree also be useful? |
I have never used the Layer tree for debugging, so I'll defer to @Hixie to answer that question. |
Layer tree isn't going to be that helpful to a lot of people, but certainly it will be helpful to some. Much like the accessibility tree. |
Is the Semantics tree something app developers would use? If it's more for framework engineers or someone who has special needs of app accessibility, let's hide it in the menu. |
The semantics tree is something you would use when making your app accessible. In practice there is little difference between a "framework engineer" and an "app developer" once the app developer is advanced enough. |
I agree there is no hard distinction between framework engineers and app developers. I'd like to learn more about the kinds of issues these two trees can help diagnose. Does a compositing problem usually indicate a bug in the framework or engine, or can it be caused by incorrect use of Flutter APIs? |
The Semantics Tree is also useful for app developers that want to make their app accessible. I just used it to figure out why a certain text widget in an app is not focusable. And the Semantics Tree showed me that that text actually got merged into another semantics node. |
There's very little distinction between "framework" code and code that makes "use of Flutter APIs". We expect developers to create their own Layer subclasses, their own RenderObjects, their own Widgets, etc. You would need the layer tree (or rather, be helped by the layer tree) if you were to try and debug performance issues, logic issues with custom layers, that kind of thing. |
+1 for customer:mulligan |
+1 on the layer tree. Large enterprise users would definitely appreciate being able to visualize the layer tree in non-ascii form. |
some updates here? Also FocusTree would be helpful. |
Seeing the Widget and Render Tree Hierarchy in the Flutter Inspector is great. Would love to also see the Semantics Tree there.
The text was updated successfully, but these errors were encountered: