Why isn't this code running?
why is it displaying (pubspec.yaml 1,M) ?
And it's showing rethrow with symbol?
I tried every solution on YouTube, but this error still persists. After saving and running the code, it displays rethrow with some symbol. After doing Restart still its showing same error.
I want to add image in flutter(Vscode)? Is there another way to add an image in Flutter?
You need to create
assets
folder on project root level. And then inside it, create another folderimages
It will be look like this
Then put your assets images there.
Find more about assets-and-images