https://github.com/chornthorn/flutter_flags
Flutter Flags
https://github.com/chornthorn/flutter_flags
dart-package flags flutter flutter-library flutter-package
Last synced: about 2 months ago
JSON representation
Flutter Flags
- Host: GitHub
- URL: https://github.com/chornthorn/flutter_flags
- Owner: chornthorn
- License: bsd-2-clause
- Created: 2020-11-29T08:49:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-29T09:46:36.000Z (over 5 years ago)
- Last Synced: 2025-03-08T15:18:43.724Z (over 1 year ago)
- Topics: dart-package, flags, flutter, flutter-library, flutter-package
- Language: Dart
- Homepage: https://pub.dev/packages/flutter_flags
- Size: 1.06 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Flutter flags

[](https://lunagao.github.io/BlessYourCodeTag/)
A flag Flutter package for `Android` / `iOS` / `Web`. Mobile Based by https://github.com/dnfield/flutter_svg , Web Based by `Image.network`
## svg source
* Flag list came from UN members. [UN Web Site](https://www.un.org/en/member-states/index.html)
* A lot of flag svg files came from wike. such as [Antigua and Barbuda](https://commons.wikimedia.org/wiki/File:Flag_of_Antigua_and_Barbuda.svg)
* Some flag svg files came from [Countryflags](https://www.countryflags.com/en/).
## Flag list
[Flag List](https://github.com/LunaGao/flag_flutter/wiki/UN-numbers-list)
Organisations
* `eu` European Union. Modify by [art-decor for European Union](https://www.art-decor.org/mediawiki/index.php?title=File:Flag_eu.svg)
## How to use
`Flag(COUNTRY_CODE, height: HEIGHT, width: WIDTH),`
Such as
* `Flag('AD', height: 100, width: null)`
* `Flag('AD', height: null, width: null)`
* `Flag('AD', height: 10, width: 100, fit: BoxFit.fill)`
## Bugs
* `brazilian` (br) flag, you can see that the letters are still a bit abnormal.
## Branch & version
switch Flutter SDK channel
[Flutter-build-release-channels](https://github.com/flutter/flutter/wiki/Flutter-build-release-channels)
```
flutter channel
flutter channel
```
* `develop` --> develop
* `stable` --> verison X.Y.Z (using latest `stable` channel Flutter SDK)
```
Channel stable, 1.22.2
```
* `master` --> verison X.Y.Z-pre (using latest `bate` channel Flutter SDK)
```
Channel beta, 1.20.0-7.3.pre
```