If you want to add image in Flutter? I think the error is caused by the redundant.
1 2 3 4 | flutter: uses-material-design: true, # <<< redundant , at the end of the line assets: - images/lake.jpg |
I’d also suggest to create an assets folder in the directory that contains the pubspec.yaml file and move images there and use
1 2 3 4 | flutter: uses-material-design: true assets: - assets/images/lake.jpg |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.