So the thing is flutter inspector does not navigate to code if you project path contains a folder name which has spaces
for an example :
Initially my folder was located at /Users/USER/Desktop/MY PROJECTS/MOB_DEMO
MY PROJECTS this name has space init , so if change it to MY_PROJECTS, it will resolve the issue of not navigating to the code /Users/USER/Desktop/MY_PROJECTS/MOB_DEMO