In pubsec.yaml it gives this error.
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
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...