패키지, 저장소 및 앱 카테고리 검색

패키지 상세v3.0.0

country_icons

Image.asset 메서드를 통해 사용할 수 있는 여러 국가의 국기 아이콘을 포함한 플러터 패키지

AndroidiOSmacOSWindowsLinux
30일 다운로드
1.4만
좋아요
103
Pub 점수
150

패키지 설치

flutter pub add country_icons

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

Image.asset 메서드를 사용하여 앱에 쉽게 통합할 수 있는 국가 국기 아이콘 모음을 제공하는 플러터 패키지입니다. 단순성과 효율성을 고려해 설계되었으며, 안드로이드, iOS, 맥OS, 윈도우, 리눅스 등 여러 플랫폼을 지원합니다. 아이콘은 자산 파일 형태로 제공되어 빠른 렌더링과 최소한의 오버헤드를 가능하게 합니다. 국제 사용자 인터페이스, 여행 앱, 언어 선택 기능 등 국가를 시각적으로 표현해야 하는 애플리케이션에 적합합니다.

사용 사례

  • 사용자 프로필에 국가 깃발 표시
  • 언어 또는 지역 선택 구현
  • 여행 또는 로컬라이제이션 기능 향상
  • 다국어 앱 인터페이스 만들기
  • 글로벌 데이터 시각화에서 원천 표시

주요 기능

  • 수많은 국가용 사전 구축된 국기 자산
  • Image.asset를 통한 간단한 통합
  • 크로스 플랫폼 호환성
  • 경량이고 효율적
  • 새 플래그로 쉽게 업데이트 가능

적합한 대상

  • 국제 사용자 기반을 가진 앱
  • 여행 및 관광 플랫폼
  • 언어 또는 지역 선택 컴포넌트
  • 글로벌 데이터 대시보드
  • 다국어 사용자 인터페이스

고려 사항

  • 사용자 정의 플래그에 대한 수동 자산 관리가 필요합니다
  • 정적 아이콘 세트로 제한
  • 내장 애니메이션 또는 상호작용 기능 없음
  • 정확한 자산 경로 구성에 따라 달라짐
  • 큰 아이콘 세트에 대한 추가 크기 최적화가 필요할 수 있습니다

원본 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 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.