{"id":21663525,"url":"https://github.com/lunagao/flag_flutter","last_synced_at":"2025-04-09T22:18:32.112Z","repository":{"id":43817424,"uuid":"200615820","full_name":"LunaGao/flag_flutter","owner":"LunaGao","description":"flag icons","archived":false,"fork":false,"pushed_at":"2024-04-15T12:00:39.000Z","size":3975,"stargazers_count":64,"open_issues_count":8,"forks_count":59,"subscribers_count":2,"default_branch":"stable","last_synced_at":"2025-04-09T22:18:25.791Z","etag":null,"topics":["flag","flags","flutter-plugin"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/flag","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LunaGao.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"LunaGao","patreon":null,"open_collective":null,"ko_fi":"LunaGao","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":"lunagao","otechie":null,"custom":"https://raw.githubusercontent.com/LunaGao/image_for_maomishen_hexo/master/alipay.jpeg"}},"created_at":"2019-08-05T08:34:55.000Z","updated_at":"2025-01-19T03:29:31.000Z","dependencies_parsed_at":"2024-06-18T20:10:50.820Z","dependency_job_id":null,"html_url":"https://github.com/LunaGao/flag_flutter","commit_stats":{"total_commits":96,"total_committers":16,"mean_commits":6.0,"dds":"0.39583333333333337","last_synced_commit":"a2604b29221c97d8d94b04868d61ee1f3f0fc4ab"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LunaGao%2Fflag_flutter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LunaGao%2Fflag_flutter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LunaGao%2Fflag_flutter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LunaGao%2Fflag_flutter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LunaGao","download_url":"https://codeload.github.com/LunaGao/flag_flutter/tar.gz/refs/heads/stable","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119285,"owners_count":21050755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["flag","flags","flutter-plugin"],"created_at":"2024-11-25T10:26:21.747Z","updated_at":"2025-04-09T22:18:32.095Z","avatar_url":"https://github.com/LunaGao.png","language":"Dart","readme":"![Logo](./.github/flag.png)\n\n# flag\n[![Pub Version](https://img.shields.io/pub/v/flag?style=flat-square)](https://pub.dev/packages/flag)\n[![Bless](https://img.shields.io/badge/bless-God-brightgreen?style=flat-square)](https://lunagao.github.io/BlessYourCodeTag/)\n\nA flag Flutter package for `Android` / `iOS` / `Web`. Based by https://github.com/dnfield/flutter_svg .\n\n## Screenshot\n![Screenshot](./.github/image.jpeg)\n\n## Svg sources\n* All flags came from https://github.com/lipis/flag-icons/releases/tag/v4.1.4\n\nThanks the great project [flag-icons](https://github.com/lipis/flag-icons).\n\n## Flag list\n\nISO 3166-1-alpha-2 Flags\n\nNote: \n\nOrganisations\n* `eu` European Union.\n\nDisputed territories\n* `hk` Hong Kong. Special Administrative Region of China.\n* `mo` Macau. Special Administrative Region of China.\n* `eh` Western Sahara. Claimed by Morocco.\n* `tw` Taiwan. Claimed by China.\n\nUndisputed territories which are non-UN state\n* `va` Vatican City. Govern by the Holy See.\n\n## How to use\n\n```\nFlag.fromCode(\n    FlagsCode.COUNTRY_CODE, \n    height: HEIGHT, \n    width: WIDTH,\n)\n```\n\n```\nFlag.fromString(\n    COUNTRY_CODE, \n    height: HEIGHT, \n    width: WIDTH,\n)\n```\n\n```\nFlags.fromCode(\n    [\n        FlagsCode.GB, \n        FlagsCode.US\n    ], \n    height: 100, \n    width: 100 * 4 / 3,\n)\n```\n\nSuch as\n* `Flag.fromCode(FlagsCode.AD, height: 100, width: null)`\n* `Flag.fromString('AD', height: null, width: null)`\n* `Flag.fromString('AD', height: 10, width: 100, fit: BoxFit.fill)`\n","funding_links":["https://github.com/sponsors/LunaGao","https://ko-fi.com/LunaGao","https://issuehunt.io/r/lunagao","https://raw.githubusercontent.com/LunaGao/image_for_maomishen_hexo/master/alipay.jpeg"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flunagao%2Fflag_flutter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flunagao%2Fflag_flutter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flunagao%2Fflag_flutter/lists"}