パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v3.0.0

country_icons

Image.asset メソッドを使用して利用できる多数の国々の国旗アイコンを備えたFlutterパッケージ

AndroidiOSmacOSWindowsLinux
30日間ダウンロード
1.4万
いいね数
103
Pub ポイント
150

パッケージをインストール

flutter pub add country_icons

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Image.asset メソッドを使用してアプリに簡単に統合できる国際的な国旗アイコンのコレクションを提供するFlutterパッケージです。シンプルさと効率性を重視しており、Android、iOS、macOS、Windows、Linuxなど複数のプラットフォームをサポートしています。アイコンはリソースファイルとして提供され、高速レンダリングと最小限のオーバーヘッドを実現します。国際ユーザーインターフェースや旅行アプリ、言語選択機能など、国を視覚的に表現する必要があるアプリに最適です。

用途

  • ユーザーのプロフィールに国際旗を表示する
  • 言語または地域の選択を実装する
  • 旅行またはローカリゼーション機能の強化
  • マルチリンガルアプリインターフェースの作成
  • グローバルデータ可視化における出典の表示

主な機能

  • 多数の国向けの事前構築済み旗アセット
  • Image.asset を通した簡単な統合
  • クロスプラットフォーム互換性
  • 軽量で効率的
  • 新しいフラグを簡単に更新可能

適している対象

  • 国際的なユーザー基盤を持つアプリ
  • 旅行および観光プラットフォーム
  • 言語または地域セレクター コンポーネント
  • グローバルデータダッシュボード
  • 多言語UI

注意事項

  • カスタムフラグ用の手動アセット管理が必要です
  • 静的アイコンセットに制限
  • 組み込みのアニメーションやインタラクティブ機能なし
  • 正しいアセットパスの設定に依存する
  • 大規模なアイコンセットに対して、追加のサイズ最適化が必要になる場合があります

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

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

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。