Closed Steccah closed 1 year ago
@alexrintt are we going to use svgs for flag icons? Do you know other ways to acheieve this in a lighter way?
I saw that the folder is 2mb.
I think the best we can do is to store just the image URLs and load through some kind of CachedNetworkImage
and set the cache config to never expire, this way the user load only the flags they open.
flag package is using the same approach -> SVG assets (2mb).
But I think the best way to display the flags is using SVG, 1. normal images aren't dpi friendly, 2. fonts aren't allowed to have multiple colors as flags do... so the only alternative is SVG.
We could use emojis or really small jpg/png?
Not sure about emojis. But I think we should use SVG as you are already doing, but we should not pack it into the app built-in assets.
So basically you want to download flags when needed and save them locally right?
Thanks to this project for the icons