svg_flag 1.5.1 svg_flag: ^1.5.1 copied to clipboard
A curated collection of all country flags in SVG format for easier integration.
Svg Flag #
A curated collection of all country flags in SVG format for easier integration.
Preview #
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