Flutter initializaiton in VSCode

Viewed 2217

I've been working on a flutter project using VS Code. And when I opened my project today, there is a notification stating "Initializing flutter. This may take a few minutes", and it's struck there.

Image showing the message

Also, all the commands such as "flutter run" and "flutter doctor" are perfectly running and I am able to run my app through the terminal. But the other options such as Run Without Debugging are not working, and also the code auto-complete is showing no suggestions. Can anyone please help me in solving the issue.

2 Answers

In the settings.json file check that "dart.flutterSdkPath" has the correct location of the Flutter SDK to use. Or leave it blank to look for it in the project directory, FLUTTER_ROOT environment variable, and PATH environment variable

Related