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
Got a similar error:
The directory ../ does not contain a pubspec.
This is because I was referring to a folder that did not have a pubspec.yaml file.
Solution:
Change from:
file_picker: path: ../
To
file_picker: path: ./