v7.1.0flag
一個用於顯示旗幟的 Flutter 套件。所有旗幟皆來自 https://github.com/lipis/flag-icons/releases/tag/v4.1.4。
164喜歡 5.1萬近 30 天下載160Pub 分數
AndroidiOSWebmacOSWindowsLinux
旗幟圖示
以下為英文專案原文快照,最新內容請造訪 GitHub。
A flag Flutter package for Android / iOS / Web. Based by package:flutter_svg .
Thanks the great project flag-icons.
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.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)How to publish https://docs.flutter.dev/packages-and-plugins/developing-packages#publish
依賴清單 4 項
{"sdk":"flutter"}^2.2.1^2.2.1{"sdk":"flutter"}先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗