Skip to content
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

Android Studio Flutter Inspector toggle select widget mode on is not redirecting me to where the actual source code is located to edit the code!! #5689

Closed
AradhyaNepal opened this issue Apr 20, 2023 · 4 comments

Comments

@AradhyaNepal
Copy link

AradhyaNepal commented Apr 20, 2023

image

When a developer selects a widget from Flutter Inspector with toggle select widget mode on, in device it shows which portion of UI is selected. But developer also needs to know where the code is actually located, so that they can start editing the code as per their need. Which improves the debugging experience of developer rather than searching the code throwout the messy codebase, without it, its really hard for me as a developer to select a widget and not able to know where the code is located.

Note: I am using Android Studio, this feature to tap a widget in Flutter inspector and open the source code to start editing is available in visual studio.

Also if the feature is already available, appolozies, but I didn't found well documentation from internet about how to do in android studio.

Thank You.


DevTools version: 2.20.1
Connected Device:
CPU / OS: arm64 (64 bit) android
Dart Version: 2.19.1
Flutter Version: 3.7.1 / stable
Framework / Engine: 7048ed95a5 / 800594f1f4
Connected app type: Flutter native (debug build)

@AradhyaNepal AradhyaNepal changed the title Android Studio FLutter Inspector toggle select widget mode on must is not redirecting me to where the actual source code is located to edit the code!! Android Studio Flutter Inspector toggle select widget mode on is not redirecting me to where the actual source code is located to edit the code!! Apr 20, 2023
@kenzieschmoll
Copy link
Member

kenzieschmoll commented Apr 20, 2023

This is the intended behavior in Android Studio, and if it is not working that is a bug. @helin24 @stevemessick are either of you getting reports that this jump-to-source behavior is broken?

@stevemessick
Copy link
Member

No, I don't recall any reports about this. I just tried it, using the embedded inspector, and it works fine. @AradhyaNepal are you clicking in the Widget Tree or the Widget Details Tree? It works in the Widget Tree. I'm not sure if it is supposed to work in the Widget Details Tree.

@AradhyaNepal
Copy link
Author

AradhyaNepal commented Apr 21, 2023

After reading your response, I learned that the name of this feature is jump-to-source, so I started searching it, and by using correct keyword in google, I found this stackoverflow: https://stackoverflow.com/a/69708231

In my entire 1.5 years of flutter journey, I had used space on the folder where the project is stored:
Practice Project
-Animation

Office Project
-Project1
-Project2

Except me, all of my college friend and office colleagues uses visual studio code, so for 1.5 years I thought this feature is only available in visual studio code.
But the problem was caused by any blanks in the full project path.

After removing the blank space this feature worked.
For now the problem is solved thanks for you giving me exact keyword to search from google.

But I think this space making jump to source not work in android studio problem must be solved.

Thanks!!

@stevemessick
Copy link
Member

Tracking this issue as flutter/flutter-intellij#6722. Closing this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants