Search packages, repositories and app categories

GitHub repositoryLunaGao/flag_flutter

flag_flutter

flag icons

flag_flutter project cover
Stars
66
Forks
62
Last push (UTC)
Sep 22, 2025
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

Logo

flag

Pub Version Bless

A flag Flutter package for Android / iOS / Web. Based by package:flutter_svg .

Screenshot

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

  • eu European Union.

Disputed territories

  • hk Hong Kong. Special Administrative Region of China.
  • mo Macau. Special Administrative Region of China.
  • eh Western Sahara. Claimed by Morocco.
  • tw Taiwan. Claimed by China.

Undisputed territories which are non-UN state

  • va Vatican 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)

for developers

How to publish https://docs.flutter.dev/packages-and-plugins/developing-packages#publish

Star History

Star History Chart

Luna Gao GitHub avatar
GitHub author

Luna Gao ↗

Maomishen

MaomishenChinaOfficial website ↗
LanguagesDartPythonHTMLObjective-CSwiftJavaKotlin

Categories

Packages published by this repository

Dependencies used

Dependency list 4 items

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗