flag 6.0.0
flag: ^6.0.0 copied to clipboard
A flag Flutter package. Use for showing flags. All flags came from https://github.com/lipis/flag-icons/releases/tag/v4.1.4 .

flag #
A flag Flutter package for Android / iOS / Web. Based by https://github.com/dnfield/flutter_svg .
Screenshot #

Svg sources #
- All flags came from https://github.com/lipis/flag-icons/releases/tag/v4.1.4
Thanks the great project flag-icons.
Flag list #
ISO 3166-1-alpha-2 Flags
Note:
Organisations
euEuropean Union.
Disputed territories
hkHong Kong. Special Administrative Region of China.moMacau. Special Administrative Region of China.ehWestern Sahara. Claimed by Morocco.twTaiwan. Claimed by China.
Undisputed territories which are non-UN state
vaVatican City. Govern by the Holy See.
How to use #
Flag.fromCode(FlagsCode.COUNTRY_CODE, height: HEIGHT, width: WIDTH),
Flag.fromString(COUNTRY_CODE, height: HEIGHT, width: WIDTH),
Flags.fromCode([FlagsCode.GB, FlagsCode.US], height: 100, width: 100 * 4 / 3),
Such as
Flag.fromCode(FlagsCode.AD, height: 100, width: null)Flag.fromString('AD', height: null, width: null)Flag.fromString('AD', height: 10, width: 100, fit: BoxFit.fill)
Web Error #
If you got an ImageCodecException issue on web, maybe this issue can solve your problem.
Bugs #
brazilian(br) flag, you can see that the letters are still a bit abnormal.