Quantcast
Channel: Not able to load image in flutter package - Stack Overflow
Browsing all 4 articles
Browse latest View live

Answer by Reza Taghizadeh for Not able to load image in flutter package

If you are sure that you add assets truly in the pubspec.yaml file just add the name of your package to the package field of image.assetlike bellow:Image.asset( e.flagUri!, width: 40, fit:...

View Article



Answer by benten for Not able to load image in flutter package

please try this code. and make an image folder in the samedirectory where you have the lib folderin your pubspec.yaml file flutter: uses-material-design: true assets: - images/and in your dart file...

View Article

Answer by cpgade for Not able to load image in flutter package

Make sure all your images are saved inside a directory called 'images', which is inside a directory called 'assets'.Update your pubspec.yaml as follows:flutter: uses-material-design: true # To add...

View Article

Not able to load image in flutter package

I've created a flutter package and images are inside images folder.flutter: uses-material-design: true # To add assets to your package, add an assets section, like this: # assets: assets: - images/ -...

View Article
Browsing all 4 articles
Browse latest View live


Latest Images