0 purchases
svg flag
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
Example #
svg_flag/example/lib/main.dart
svg_flag v1.3.0.apk
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.