Conditional assets in Flutter

Viewed 327

I have an app with multiple flavours. Assets are flavour-specific, and I'm looking for a way to filter out the assets that don't apply for the current flavour. The current structure looks like

assets
  flavour1
    image.jpg
  flavour2
    image.jpg

In other words, how do I make sure that when I compile flavour1 the assets folder gets truncated down to

assets
  flavour1
    image.jpg
0 Answers
Related