
I tried to run my flutter code and got this error message. Unable to launch Flutter project in a Dart-only workspace. Please open a folder closer to your Flutter project root or increase the value of the "dart.projectSearchDepth" setting.

I went to the 'Extensions' section and searched for Dart and Flutter plugins. Then clicked the 'Switch to Pre-Release Version' and error was gone after running the code again.
Just restart your VSCode and raun your project again :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With