I recently started learning flutter/dart and I have a Problem that i couldn't solve. I've read in the official flutter documentation that you have to follow these three steps to install a package in flutter:
My problem is though that VS marks it as an error if I try to do step 3: Target of the URI doesn't exist
Any ideas what I could do? I've installed the flutter and dart extensions for VS Code and also tried to restart the program but nothing worked.
try running
flutter clean
if it is still not working, run:
flutter clean pub cache