Flutter assest bundle not exists, i don't know how to fix this problem. please anybody help me to solve this prroblem.Anybody say that error in above screenshot.I cannot find that error please help me.how can i solve this problem?
How can i image in flutter?
46 views Asked by Vishveshwar At
2
There are 2 answers
0
On
if you have not added this in pubspec.yaml
add this & pub get to get the packages done.
flutter:
assets:
- assets/
- assets/images/
if this doesn't solves it can you please show the structure of the project (i mean the folders flow) so that we can figure the path of the asset image accordingly.
Your image is not in the same location as you are calling it in your project.
You are calling
assets/images/bus1.jpgbut you've put your image into your project's main folder. This is not correct.Create an
assetsfolder within your project and in that folder, you can create oneimagesfolder, and place your image in there.Then, you will also need to add your asset to your configuration file called
pubspec.yaml, under your main project folder.Use the following link, to learn how to use Assets and Images