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.

Libraries

countries_flag