Buscar pacotes, repositórios e categorias de apps

Repositório GitHubLunaGao/flag_flutter

flag_flutter

ícones de bandeira

Capa do projeto flag_flutter
Estrelas
66
Forks
62
Último push (UTC)
22 de set. de 2025
Status do projeto
Ativo

README original

Texto original em inglês. Visite o GitHub para a versão atual.

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
Autor no GitHub

Luna Gao ↗

Maomishen

MaomishenChinaSite oficial ↗
LinguagensDartPythonHTMLObjective-CSwiftJavaKotlin

Categorias

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 4 itens

Como escolher um repositório para seu projeto?

Filtre pelo caso de uso, compare a atividade e confira o projeto original antes de adotá-lo.

  1. Busque por nome, autor ou descrição e filtre por tema.
  2. Compare estrelas, forks e envios recentes. Estrelas indicam interesse, mas não garantem qualidade.
  3. Confira o README, a licença e as issues no GitHub antes de usar o projeto.

Fontes e manutenção

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

GitHub Docs — About repositories ↗