131232134cfeaf23
131232134cfeaf23

Reputation: 11

Why does vscode say the asset does not exist? flutter

I did it in the android studio before. That's why I can't understand this doesn't work... Is this a kind of bug? or Am I doing wrong? the "get packages" is the same as "pub get" in android studio. isn't it? assets

Upvotes: 0

Views: 829

Answers (1)

Akif
Akif

Reputation: 7640

Your assets folder is under the lib folder. It should be in the main folder.

Or you can edit your path like this:

assets:
  - lib/assets/bar.jpg

Upvotes: 3

Related Questions