Error on line 37, column 3 of pubspec.yaml: Expected ‘:’ [closed]

enter image description here [nearby_interpreters] dart pub get –no-example
Error on line 37, column 3 of pubspec.yaml: Expected ‘:’.

37 │ # The following adds the Cupertino Icons font to your application.
│ ^

exit code 65

Below starts from line 37.
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2

  • Could be spacing issue like this one? stackoverflow.com/questions/77335879/…

    – 

  • Perhaps the problem is really on line 36. It’s hard to answer without more context. This illustrates the value of a minimal reproducible example.

    – 




  • I add a picture.

    – 

  • 1

    add space after location:. So it should be location: ^4.3.0. Please be aware that yaml is very sensitive to whitespaces

    – 

  • 1

    Please read Why should I not upload images of code/data/errors when asking a question?

    – 

Leave a Comment