Hello Guys. Many times we Face Flutter Pub: Expected a key while parsing a block mapping. path:. So in this tutorial, we are going to Solve this error.
So Error That I have faced is as below.
Error on line 30, column 6 of pubspec.yaml: Expected a key while parsing a block mapping. assets: ^
Here is my pubspec.yaml File:
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.0
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
uses-material-design: true
assets:
- loadjson/person.json
Solution:
Here is all possible solution added please visit Flutter Pub: Expected a key while parsing a block mapping. path:
Top comments (0)