countries_flag 0.0.1 countries_flag: ^0.0.1 copied to clipboard
250+ flags to use in you dream project, with just a single line of code.
Why Countries Flag? #
Countries Flag provides more then 250 countries flags in one place. It provides you easy way to add country flags in your project.
Usage #
To use this library in your code:
-
add a dependency in your
pubspec.yaml
:dependencies: countries_flag:
-
add import in your
dart
code:import 'package:countries_flag/countries_flag.dart';
FlagIcons #
The following example illustrates how to use flag icons.
Flag(Flags.pakistan),
Flag(Flags.indonesia),
Flag(Flags.india),
Flag(Flags.afghanistan),
Flag(Flags.bangladesh),
The flag icons pack includes the following properties.
Property | Type |
---|---|
key: | key |
matchTextDirection: | bool |
width: | double |
height: | double |
placeholderBuilder: | Widget |
colorBlendMode: | BlendMode |
fit: | BoxFit |
alignment: | AlignmentGeometry |
allowDrawingOutsideViewBox: | bool |
excludeFromSemantics: | bool |
clipBehavior: | Clip |
cacheColorFilter: | bool |
theme: | SvgTheme |
Contributors #
Report bugs or issues #
You are welcome to open a ticket on github if any problems arise. New ideas are always welcome.
Copyright and License #
Copyright © 2022 3kdveloper. Licensed under the MIT LICENSE.