flutter / devtools

Performance tools for Flutter
https://flutter.dev/docs/development/tools/devtools/
BSD 3-Clause "New" or "Revised" License
1.53k stars 313 forks source link

[Inspector V2] Unify summary tree and widget details tree #7912

Closed elliette closed 2 weeks ago

elliette commented 3 weeks ago

Work towards https://github.com/flutter/devtools/issues/7911

This PR uses the new API added in https://github.com/flutter/flutter/pull/150010 for the widget tree.

For the V2 widget tree, it calls it with isSummaryTree=false to get all the widgets in a user's widget tree, not just those created in the project. The widgets that weren't created in the project are greyed out.

Screenshot 2024-06-11 at 11 31 55 AM

Follow-up: collapsing the widgets not created by the user's project