搜尋套件、儲存庫與 APP 分類

GitHub 儲存庫LunaGao/flag_flutter

flag_flutter

旗幟圖示

flag_flutter 專案封面
星標
66
分支
62
最近推送(UTC)
2025年9月22日
專案狀態
未封存

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

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 作者

Luna Gao ↗

Maomishen

MaomishenChina官方網站 ↗
語言DartPythonHTMLObjective-CSwiftJavaKotlin

分類

此儲存庫發佈的套件

使用的依賴

依賴清單 4 項

如何選擇適合專案的儲存庫?

先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。

  1. 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
  2. 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
  3. 使用前在 GitHub 確認 README、授權條款與 Issues。

來源與維護

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

GitHub Docs — About repositories ↗