Skip to content

cedvdb/flutter_circle_flags

Repository files navigation

circle_flags

A collection of circular country flags.

Demo

to view all flags https://hatscripts.github.io/circle-flags/gallery

Usage

// use a valid country code
CircleFlag('us');
CircleFlag('fr');
CircleFlag(Flags.US);

Preloading

You might want to preload images for a smoother list scrolling experience:

CircleFlag.preload(['fr', 'us']);

Overwriting or adding custom flags

Some users have expressed their need to change some flags due to political reasons, or stylistic reasons. You might also wish to add your own flags. To do so refer to this issue: cedvdb/phone_form_field#222

Contributing & issues

see CONTRIBUTING.md

For generating the flag.dart just run

    dart run tools/generate_flag.dart

About

Circular flags for flutter

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 8