Add all folder in subfolder of assets in pubspec.yaml at once?

Viewed 456

I have some folder in assets/images such as :

flutter:
  assets:
    - assets/images/
    - assets/images/home/
    - assets/images/shop/
    - assets/images/profile/
    - assets/images/etc/

is there any way to add all subfolder at once? seems like assets/images/* or something? many thanks in advance!

1 Answers

Only files located directly in the directory are included unless there are files with the same name inside a subdirectory (see Asset Variants). To add files located in subdirectories, create an entry per directory. see more

Related