A flag Flutter package for Android / iOS / Web
flag
A flag Flutter package for Android / iOS / Web. Mobile Based by https://github.com/dnfield/flutter_svg , Web Based by Image.network
ScreenShot
svg source
- Flag list came from UN members. UN Web Site
- A lot of flag svg files came from wike. such as Antigua and Barbuda
- Some flag svg files came from Countryflags.
fetch data :python file is fetch_data/main.py
Update time: 2020-04-21 23:22:58
Marge from 2.0.X to 3
Replace Flags.getFlag(country:
to Flag(
. :)
Flag list
Organisations
eu
European Union. Modify by art-decor for European Union
How to use
Flag(COUNTRY_CODE, height: HEIGHT, width: WIDTH),
Such as
Flag('AD', height: 100, width: null)
Flag('AD', height: null, width: null)
Flag('AD', height: 10, width: 100, fit: BoxFit.fill)
Bugs
brazilian
(br) flag, you can see that the letters are still a bit abnormal.
Branch & version
switch Flutter SDK channel
Flutter-build-release-channels
flutter channel
flutter channel <channel-name>
develop
--> developstable
--> verison X.Y.Z (using lateststable
channel Flutter SDK)
Channel stable, 1.17.5
master
--> verison X.Y.Z-pre (using latestbate
channel Flutter SDK)
Channel beta, 1.20.0-7.3.pre