how to solve pubspec.yaml error? After trying every solution from YouTube?

47 views Asked by At

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?

Showing (pubspec.yaml 1,M)

After running this. Its showing rethrow with some symbol

1

There are 1 answers

0
Md. Yeasin Sheikh On

You need to create assets folder on project root level. And then inside it, create another folder images

It will be look like this

enter image description here

Then put your assets images there.

Find more about assets-and-images