live-love
live-love

Reputation: 52484

A dependency specification must be a string or a mapping

Error on line 32, column 5 of pubspec.yaml: A dependency specification must be a string or a mapping. ╷

32 │ ┌     - assets/
33 │ └ 
   ╵

pub get failed (65; ╵)

enter image description here

Upvotes: 3

Views: 3715

Answers (1)

live-love
live-love

Reputation: 52484

The problem is I had the assets folder in the wrong location. It should not be under dependencies.

In addition, you must add 2 spaces before "assets", as shown in the picture:

enter image description here

Upvotes: 17

Related Questions