countries_flag 0.0.1 copy "countries_flag: ^0.0.1" to clipboard
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 Demo Screen


  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 #

3kdeveloper

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.

20
likes
140
pub points
84%
popularity

Publisher

verified publisherby3kdeveloper.blogspot.com

250+ flags to use in you dream project, with just a single line of code.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_svg

More

Packages that depend on countries_flag