As the title describes, I wonder if it is possible to split the pubspec.yaml file in Flutter into several files. The use case I'm thinking about is generating the imported assets declarations with an import script. But it seems like a bad idea to mix code generation and manual edits in the same file.
So I would like to generate a separate assets import file and import that into the pubspec.yaml file.
Is that possible and if so how?
Change this:
flutter:
assets:
- images/a_dot_burr.jpeg
- images/a_dot_ham.jpeg
fonts:
- family: SomeFont
fonts:
-assets: fonts/SomeFont.tff
into something like
flutter:
#import imageAssets.yaml
#import fontsAssets.yaml