Home > Mobile >  Error on line 25, column 10: Mapping values are not allowed here. Did you miss a colon earlier?
Error on line 25, column 10: Mapping values are not allowed here. Did you miss a colon earlier?

Time:08-21

In pubsec.yaml it gives this error.

enter image description here

CodePudding user response:

The issue with indentation, follow

dependencies:
  cupertino_icons: ^1.0.2
  flutter:
    sdk: flutter
  
  english_words: ^4.0.0

dot indicates the number of space

enter image description here

CodePudding user response:

Take care with spaces. YAML is like Python, intentation matters. The dependencies http, flutter and firebase_core have the wrong indentation.

To fix it just do like the following:

# The same before...

dependencies:
  flutter:
    sdk: flutter

  http: ^0.12.0 1
  firebase_core: ^1.21.0

# And so on...
  • Related