How do I get an array/list filled with all the image paths I loaded as assets in Flutter?

后端 未结 1 1614
逝去的感伤
逝去的感伤 2020-12-20 08:53

I want to know if there is a way (with or without pubspec.yaml asset list) to read a directory where images will be stored, and create an array with all the paths to each im

1条回答
  •  礼貌的吻别
    2020-12-20 09:33

    There is (or at least used to be - beware, it's an implementation detail) an asset called AssetManifest.json. You can load that asset first, and it contains details of the actual assets.

    0 讨论(0)
提交回复
热议问题