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

GitHub 儲存庫bytepark/country_icons

country_icons

一個包含許多國家旗幟圖示的 Flutter 套件,您可以透過 Image.asset 方法使用它們

country_icons 專案封面
星標
29
分支
19
最近推送(UTC)
2024年1月25日
專案狀態
未封存

原始 README

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

country_icons

A dart package with many country flag icons

Getting Started

This package provides country icons as PNG and SVG to be used in dart code. You can simply access the files directly via an asset() method, or you can use the packages method getSvgFlag().

Icons as png

You can either use the PNG icons directly via new Image.asset('icons/flags/pngXXXXpx/yy.png', package: 'country_icons'); where XXXX is the size [100,250,1000] and yy is the country code.

Icons as SVG

Alternatively you can use SVG icons via new SvgPicture.asset('icons/flags/svg/xx.svg', package: 'country_icons'); For this to work you should require flutter_svg in your code directly.

dependencies:
flutter_svg: ^2.0.0
Packages Method for SVGs

You can use CountryIcons.getSvgFlag('de') for use in your code, if you do a

import 'package:country_icons/country_icons.dart';

Requests for new/updates flags

This package is simply a wrapper for the excellent flag collection of hjnilsson (see Credits below). Any requests for adding, updating or removing of flags do not make sense in this repo.

Credits

Flags are used from hjnilsson

Repo: https://github.com/hjnilsson/country-flags Homepage: http://hjnilsson.github.io/country-flags

bytepark GitHub avatar
GitHub 作者

bytepark ↗

Berlin, Germany官方網站 ↗
語言C++CMakeDartHTMLSwiftCObjective-CKotlin

此儲存庫發佈的套件

使用的依賴

依賴清單 3 項

  • flutter{"sdk":"flutter"}
  • flutter_svg^2.0.0
  • flutter_test開發依賴{"sdk":"flutter"}

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

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

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

來源與維護

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

GitHub Docs — About repositories ↗