svg_flag 1.5.1 copy "svg_flag: ^1.5.1" to clipboard
svg_flag: ^1.5.1 copied to clipboard

A curated collection of all country flags in SVG format for easier integration.

Svg Flag Logo

Svg Flag #


A curated collection of all country flags in SVG format for easier integration.

Preview #

Screenrecorder-2022-10-12-14-49-17-88

Install #

Add this line to your pubspec.yaml.

dependencies:
  svg_flag: ^1.5.1
copied to clipboard

Usage #

Import the package.

import 'package:svg_flag/svg_flag.dart';
copied to clipboard

Set flag from available static [FlagData]

SvgFlag(FlagData.id);
copied to clipboard

Set flag by parsing code from [String]

SvgFlag(FlagData.parse(code: "ID"));
copied to clipboard

Example #

14
likes
160
points
721
downloads
screenshot

Publisher

verified publisherinidia.app

Weekly Downloads

2024.07.08 - 2025.01.20

A curated collection of all country flags in SVG format for easier integration.

Homepage
Repository (GitHub)
View/report issues

Topics

#flag #svg #icon #asset

Documentation

API reference

Funding

Consider supporting this project:

ko-fi.com

License

MIT (license)

Dependencies

flutter, flutter_svg

More

Packages that depend on svg_flag