How to get a list of names of all images in ‘assets’ directory in flutter?

Posted by Pinki | Updated on

Want to get a list of names of all images in ‘assets’ directory in flutter? I’ve implemented the function below inside of a StatefullWidget.

AssetManifest.json contains all data about all assets that you add in pubspec.yaml


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers