I have images and I want to load them to my appplication. my_app/lib/... - here my source files my_app/assets/images/... - here my images
I need to get list of files
I keep a json file inside assets which records the file tree of assets folder.
When file list is needed, I just read from the json file.
Such json file can be easily generated by code.
However, this does not solve your problem directly when u have 5-10k images. Only one json file might be too large to read.
Images should be grouped and recorded in separated json files.