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
Widget Inspector shows too many widgets #6841
Comments
Can you check your Package Directories in the Inspector settings and post a screenshot of what is there? |
@jacob314 and I were just discussing something similar where an internal customer's widget tree is comprised of primarily |
Delete the flutter SDK from the list of package directories. I'm not sure how this was added to the list. @CoderDake could there be a bug in our package directory detection logic? |
Were these Provider widgets ones that they defined in their app? Or were they widgets from the internals of package:provider? |
I'm not sure either, but that fixed it for me.
I'm seeing the correct number of Provider widgets I would expect in DartPad, so I'm not sure if this is related or not. |
Summarizing what @jacob314 just told me in the office: In @goderbauer did the |
The Provider issue is separate than this - I'm pretty sure they were defined in the app, the discussion was more around whether it would make sense to filter those out (or give an option to filter them out) if a user isn't interested in seeing them in the tree view. |
Yes, the change that adds the
Because of that change this assumption is now incorrect. I wasn't aware that DevTools made this assumption... |
Odd that Good news is @elliette is working on a fix that will stop relying on the top widget in the tree being user created. |
Fixes #6841, #6853 Instead of using the top level widget in the widget tree to determine the project directory, we instead use the main isolate's root library. For google3, we also have extra logic to strip out everything before `/google3`, and to only use top-level directory after `google3` directory (or the top-level directory after `third_party`)
Fixes #6841, #6853 Instead of using the top level widget in the widget tree to determine the project directory, we instead use the main isolate's root library. For google3, we also have extra logic to strip out everything before `/google3`, and to only use top-level directory after `google3` directory (or the top-level directory after `third_party`)
Fixes flutter#6841, flutter#6853 Instead of using the top level widget in the widget tree to determine the project directory, we instead use the main isolate's root library. For google3, we also have extra logic to strip out everything before `/google3`, and to only use top-level directory after `google3` directory (or the top-level directory after `third_party`)
Fixes flutter#6841, flutter#6853 Instead of using the top level widget in the widget tree to determine the project directory, we instead use the main isolate's root library. For google3, we also have extra logic to strip out everything before `/google3`, and to only use top-level directory after `google3` directory (or the top-level directory after `third_party`)
When I open the Widget Inspector for the counter app, I get a simplified version of the widget tree, but when I open it for DartPad (pkgs/sketch_pad), I see a very complex widget tree, with widgets like View and MediaQuery, that aren't part of my application code.
Counter app:
DartPad:
The text was updated successfully, but these errors were encountered: