Skip to content

Florian-Dupire/country_flags

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Country Flags

Pub Pull Requests are welcome Null safety

A Flutter package to show a SVG image of the flag of a country.

This package includes the SVG flags from the project flag-icons and fixes the rendering problems of the flags from this list:

  • ar
  • aw
  • ky
  • gd
  • ht
  • je
  • kr
  • pe
  • rs
  • lk
  • tc
  • fk

You can find all the supported countries list here.

Showcase

Installation

Just add country_flags to your pubspec.yml file

dependencies:
  country_flags: ^1.0.0

Example

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: CountryFlags.flag(
            'es',
            height: 48,
            width: 62,
            borderRadius: 8,
          ),
        ),
      ),
    );
  }
}

Credits

Thanks to the amazing project flutter-svg

Thanks to the project flag-icons for providing with the required SVG flags.

Alternatives

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Dart 73.0%
  • HTML 20.6%
  • Swift 4.6%
  • Kotlin 1.4%
  • Objective-C 0.4%