I am trying to add images to my flutter app via assets. this is the where i have linked the images. this is the pubspec yaml file Tried different ways. nothing seems to work.
Question posted in Android Studio
The official documentation can be found here.
The official documentation can be found here.
2
Answers
First of all create a folder in your project named assets, not in your lib folder. After that in pubspace.yaml define your folder like this assets/images/
You are doing wrong thing in pubspace.yaml.
Maintain whitespaces as shown in below