country_icons
Image.asset 메서드를 통해 사용할 수 있는 여러 국가의 국기 아이콘을 포함한 플러터 패키지
Image.asset 메서드를 통해 사용할 수 있는 여러 국가의 국기 아이콘을 포함한 플러터 패키지
{"sdk":"flutter"}^2.0.0{"sdk":"flutter"}아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
A dart package with many country flag icons
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().
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.
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
You can use CountryIcons.getSvgFlag('de') for use in your code, if you do a
import 'package:country_icons/country_icons.dart';
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.
Flags are used from hjnilsson
Repo: https://github.com/hjnilsson/country-flags Homepage: http://hjnilsson.github.io/country-flags