Multiple assets in Flutter project
According to documentation to include image assets in a Flutter project, I need to add them to the
pubspec.yaml like this:
flutter: assets: - assets/my_icon.png - assets/background.png
But I have ~900 images that I need to include in my application, do I really need to manually include one by one in the file?
Yes, currently this is required and a known limitation.
You could use code generation to get the assets listed all at once, but you'll also get into troubles when the list becomes too long.