Skip to content

Widget Inspector does not jump to the source code for external widgets when clicking “Show Implementation Widgets” in the latest Flutter version #9063

Closed
flutter/flutter
#165924

Description

@HawlyHuang

After upgrading to the latest Flutter version, the Widget Inspector has a new Show Implementation Widgets button. However, clicking on this button only displays the widget’s information but does not navigate to the source code location.

In previous versions, when clicking on a widget in Widget Inspector, it would correctly jump to the source code. This behavior is now broken.

Flutter version:3.29.0

Activity

  1. HawlyHuang commented on Mar 21, 2025

    @HawlyHuang
    Author

    In previous versions, clicking on external widgets in Widget Inspector would correctly jump to the corresponding source code, even for third-party packages. This behavior is now broken.

  2. changed the title [-]Widget Inspector does not jump to the source code when clicking “Show Implementation Widgets” in the latest Flutter version[/-] [+]Widget Inspector does not jump to the source code for external widgets when clicking “Show Implementation Widgets” in the latest Flutter version[/+] on Mar 21, 2025
  3. transferred this issue fromflutter/websiteon Mar 24, 2025
  4. elliette commented on Mar 24, 2025

    @elliette
    Member

    Need to do more investigation here. We do jump to source code, just not the source code of the implementation widget - instead we jump to the source code of its parent in the local project.

  5. elliette commented on Mar 24, 2025

    @elliette
    Member

    Ah I see what is happening:

    I'm surprised this was working before, since none of this code has been touched for the new inspector. However, it looks like an easy fix.

  6. HawlyHuang commented on Mar 25, 2025

    @HawlyHuang
    Author

    Thank you for the quick investigation and detailed explanation.

    It’s good to know that the root cause has been identified and that it seems to be an easy fix.
    This issue significantly impacts development efficiency when using third-party libraries, as it prevents us from quickly navigating to the source code of external widgets.

    I’m looking forward to the fix being released soon. Let me know if you need any additional information or testing.
    Thanks again for your work! 🚀

  7. HawlyHuang commented on Apr 9, 2025

    @HawlyHuang
    Author

    Could you clarify when this version is scheduled for release? Additionally, should I prioritize updating the Flutter SDK, the Flutter tool, or both to ensure compatibility?

  8. elliette commented on Apr 9, 2025

    @elliette
    Member

    Could you clarify when this version is scheduled for release? Additionally, should I prioritize updating the Flutter SDK, the Flutter tool, or both to ensure compatibility?

    This change will be included in Flutter 3.32, which should be on Flutter beta channel in the next week or so, and on Flutter stable end of May. All you need to do is update your Flutter SDK.

  9. xuvien commented on Jun 13, 2025

    @xuvien

    Would love to see this fixed — Inspector should go to the widget usage in user code by default.

    That said, the current behavior could be useful for debugging 3rd-party packages or checking if a bug comes from the SDK. Maybe this "bug" could become a feature: add a checkbox like:

    "Prefer navigating to widget definition"

    Fix first, then make it toggleable — best of both worlds. ❣️

  10. Likhachev17 commented on Aug 14, 2025

    @Likhachev17

    any updates here? 3.35.0 jump to code still doesn't work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1high priority issues at the top of the work list, actively being worked on.devtools-inspector-screentype-bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions