↧
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 ArticleUnable 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
More Pages to Explore .....