Quantcast
Channel: Unable to load asset: Image - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by WSBT for Unable to load asset: Image

The list you declared is a List<Image> type, but you are using it as if it's a List<String>.Try this instead:final List<String> imagePaths = [ 'your/path/pic1.jpg',...

View Article


Unable to load asset: Image

I have this code for asset image Image.asset('${listPic[1]}', ),the images are located in a Listfinal List<Image> listPic= <Image>[ Image.asset('assets/images/pic1.jpg'),...

View Article
Browsing latest articles
Browse All 2 View Live