I am using Windows 10 with VS Code, although I also tested it on PowerShell, and both produced the same result:
After creating a new flutter program, before editing anyt
Answer
just change your directory folder project on terminal VS code.
Example
i save my project on directory D:\Project\Flutter Project\MyFirstApp and the main.dart on the directory name "first_app"
just typing like this on terminal :
cd first_app
now we're on D:\Project\Flutter Project\MyFirstApp\first_app
and then type flutter run
hopefully answer your question.
enter image description here