flag 4.0.0-nullsafety copy "flag: ^4.0.0-nullsafety" to clipboard
flag: ^4.0.0-nullsafety copied to clipboard

outdated

A flag Flutter package. Use for showing flags. All flags came from https://www.un.org/en/member-states/index.html .

Logo

flag #

Pub Version Bless

A flag Flutter package for Android / iOS / Web. Mobile Based by https://github.com/dnfield/flutter_svg , Web Based by Image.network

Screenshot #

Screenshot Screenshot

Svg sources #

fetch data :python file is fetch_data/main.py

Update time: 2020-04-21 23:22:58

Marge from 2.0.X to 3 #

Replace Flags.getFlag(country: to Flag(. :)

Flag list #

Flag List

Organisations

Disputed territories

  • hk Hong Kong. Special Administrative Region of China.
  • mo Macau. Special Administrative Region of China.
  • eh Western Sahara. Claimed by Morocco.
  • tw Taiwan. Claimed by China.

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

flutter channel
flutter channel <channel-name>

Or using fvm

  • develop --> develop
  • stable --> verison X.Y.Z (using latest stable channel Flutter SDK)
Channel stable, 1.22.5
  • master --> verison X.Y.Z-pre (using latest bate channel Flutter SDK)
Channel beta, 1.25.0-8.2.pre

Upload to PUB #

  • flutter pub publish --dry-run
  • flutter pub publish
145
likes
0
pub points
97%
popularity

Publisher

verified publishermaomishen.com

A flag Flutter package. Use for showing flags. All flags came from https://www.un.org/en/member-states/index.html .

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_svg

More

Packages that depend on flag