Description
Description
In Flutter 3.32.3, the Flutter Inspector no longer navigates to the widget usage in my codebase when selecting a widget from the widget tree. Instead, it opens the widget definition from the Flutter SDK itself.
For example, when I select a CupertinoButton in the Flutter Inspector, instead of opening the line where I used CupertinoButton in my own Dart file (e.g. home_screen.dart), it jumps directly to the Flutter SDK source (cupertino.dart).
This behavior breaks the expected functionality where the Inspector should navigate to the actual widget usage in user code (i.e. call site), not its definition.
Steps to Reproduce:
-
Create a Flutter app.
-
Use a standard widget like CupertinoButton or ElevatedButton in your widget tree:
CupertinoButton(
child: Text('Click'),
onPressed: () {},
)
-
Run in debug mode with Flutter 3.32.3
-
Open Flutter Inspector and select the button widget in the widget tree.
-
Inspector opens the Flutter SDK source instead of your own Dart file.
Expected Behavior:
Flutter Inspector should open the file and line where the widget is used in my application code, not inside the Flutter SDK.
Actual Behavior:
Inspector opens cupertino.dart, material.dart, or another SDK file where the widget is defined, ignoring the actual location of usage in my project.