{"id":32307964,"url":"https://github.com/arturograu/country_flags","last_synced_at":"2026-01-26T07:12:11.163Z","repository":{"id":59920775,"uuid":"540000895","full_name":"arturograu/country_flags","owner":"arturograu","description":"Easy to use library that allows you to render SVG flags of countries and languages","archived":false,"fork":false,"pushed_at":"2025-12-30T10:30:43.000Z","size":7210,"stargazers_count":26,"open_issues_count":7,"forks_count":45,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-02T23:26:38.166Z","etag":null,"topics":["dart","flutter","flutter-package","library"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/country_flags","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arturograu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-09-22T13:40:54.000Z","updated_at":"2025-12-30T10:30:07.000Z","dependencies_parsed_at":"2024-12-11T16:35:50.264Z","dependency_job_id":"7a2fc186-11f0-42ec-9e0e-470be8017f22","html_url":"https://github.com/arturograu/country_flags","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"1574cdc79841aafe84784cef8e5ca9839fe351a9"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/arturograu/country_flags","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arturograu%2Fcountry_flags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arturograu%2Fcountry_flags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arturograu%2Fcountry_flags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arturograu%2Fcountry_flags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arturograu","download_url":"https://codeload.github.com/arturograu/country_flags/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arturograu%2Fcountry_flags/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28769454,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T06:37:25.426Z","status":"ssl_error","status_checked_at":"2026-01-26T06:37:23.039Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","flutter","flutter-package","library"],"created_at":"2025-10-23T07:25:39.496Z","updated_at":"2026-01-26T07:12:11.157Z","avatar_url":"https://github.com/arturograu.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Country Flags\n\n[![Pub](https://img.shields.io/pub/v/country_flags.svg)](https://pub.dev/packages/country_flags)\n![GitHub Workflow Status (with branch)](https://img.shields.io/github/actions/workflow/status/arturograu/country_flags/main.yaml?branch=main)\n[![Pull Requests are welcome](https://img.shields.io/badge/license-MIT-blue)](https://github.com/arturograu/country_flags/blob/master/LICENSE)\n[![codecov](https://codecov.io/gh/arturograu/country_flags/branch/main/graph/badge.svg?token=NVFK3CAP1S)](https://codecov.io/gh/arturograu/country_flags)\n![Null safety](https://img.shields.io/badge/null%20safety-true-brightgreen)\n\nA Flutter package for displaying the SVG image or the emoji of a country's flag.\n\nThe flag can be generated using:\n\n- Country codes\n- Language codes\n- Currency codes (following the [ISO 4217 standard](https://www.iban.com/currency-codes))\n\nView the complete list of supported countries [here](https://www.iban.com/country-codes).\n\nFor a list of supported languages, visit www.lingoes.net/en/translator/langcode.htm (please note that not all language codes on the list are supported).\n\n![Showcase](https://i.imgur.com/quh79th.gif)\n\n### Image flags\n\n![Image flags](country_flag_shapes.png)\n\n### Emoji flags\n\n![Emoji flags](emoji_flags.png)\n\n## Installation\n\nSimply add `country_flags` to your [pubspec.yaml](https://flutter.io/using-packages/) file.\n\n```yml\ndependencies:\n  country_flags: ^4.0.0\n```\n\n## Usage\n\n### Create a flag using a country code.\n\n`fromCountryCode` supports 2 and 3 letter country code\n\n```dart\nCountryFlag.fromCountryCode('ES');\n```\n\nor\n\n```dart\nCountryFlag.fromCountryCode('ESP');\n```\n\n### Create a flag from a language code\n\n```dart\nCountryFlag.fromLanguageCode('en');\n```\n\n### Create a flag from a Currency code\n\n```dart\nCountryFlag.fromCurrencyCode('USD');\n```\n\n### Create a flag from a phone prefix\n\n```dart\nCountryFlag.fromPhonePrefix('+34');\n```\n\n### Tweak the size of the flag\n\n```dart\nCountryFlag.fromLanguageCode(\n  'en',\n  theme: const ImageTheme(\n    width: 120,\n    height: 80,\n  ),\n);\n```\n\n### Create a circular flag\n\n```dart\nCountryFlag.fromCountryCode(\n  'ES',\n  theme: const ImageTheme(\n    shape: Circle(),\n  ),\n);\n```\n\n### Create a rectangular flag with rounded corners\n\n```dart\nCountryFlag.fromCountryCode(\n  'ES',\n  theme: const ImageTheme(\n    shape: RoundedRectangle(6),\n  ),\n);\n```\n\n### Use the emoji theme\n\n```dart\nCountryFlag.fromCountryCode(\n  'ES',\n  theme: EmojiTheme(size: 60),\n)\n```\n\n## Credits\n\nSpecial thanks to [jovial_svg](https://github.com/zathras/jovial_svg) which is utilized to render the SVG images from binary files.\nMany thanks to [bgoncharuck](https://github.com/bgoncharuck) for the implementation.\n\nAcknowledgments to the [flag-icons](https://github.com/lipis/flag-icons) project for providing the necessary SVG flags.\n\n## Alternatives\n\n- [Flag](https://github.com/LunaGao/flag_flutter)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farturograu%2Fcountry_flags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farturograu%2Fcountry_flags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farturograu%2Fcountry_flags/lists"}