LunaGao / flag_flutter

flag icons
https://pub.dev/packages/flag
BSD 2-Clause "Simplified" License
63 stars 60 forks source link
flag flags flutter-plugin

Logo

flag

Pub Version Bless

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

Screenshot

Screenshot

Svg sources

Thanks the great project flag-icons.

Flag list

ISO 3166-1-alpha-2 Flags

Note:

Organisations

Disputed territories

Undisputed territories which are non-UN state

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