circle_flags
v5.0.1A collection of roundd flags
Package archive: https://pubdev.letsnova.ru/api/archives/circle_flags/5.0.1.tar.gz
Install
dart pub add circle_flagsReadme
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: https://github.com/cedvdb/phone_form_field/issues/222
Contributing & issues
see CONTRIBUTING.md
For generating the flag.dart just run
dart run tools/generate_flag.dart
Changelog
[5.0.1]
- Fix for build runner issue
[5.0.0]
- Use latest files from hatscripts
- Remove unnecessary files
- Add note in readme on how to add your own flags
- [Breaking] renamed Flags in Flag
[4.0.2]
- Exclude from semantics
[4.0.1]
- Accept iterable in preloading method
[4.0.0]
- [Breaking] Use
CircleFlag.preload([isoCode])to preload a flag. FlagCache is no longer exported.
[3.0.1]
- made it easier to use cache, some breaking changes to just introduced cache api (doesn't warrant upgrade due to it just being introduced)
[3.0.0]
- unknown flags display "?"
- revert to assets with preloading mechanism
- allow usage of other asset bundles
[2.0.9]
- recreate loader when iso code changes
[2.0.8]
- Change just introduced caching api
[2.0.7]
- Fix issue with network flags not correctly loaded
- improve caching
[2.0.0]
- use network image to reduce size
- added ability to preload images
[1.0.4]
- increase
package:flutter_svgversion - fix redering issue on some platforms
[1.0.3]
- (Re)-added netherlands antilla's flag
[1.0.2]
- add clipOval around flag for better rendering of svgs on the web
[1.0.1]
- use sensible defaults for svgs placeholders
[1.0.0]
- use svg for smaller memory footprint
[0.0.3]
- added 3 missing flags
[0.0.2]
- fix casing problems in country code
[0.0.1] - 22/03/2021
- initial release
