circle_flags
7.0.0, released 7 weeks ago by an unverified publisher
Provides a CircleFlag widget to display circular country flag SVGs.
What it does
The package ships SVG assets for many countries and a CircleFlag widget that renders them as round icons. It supports preloading, case‑insensitive ISO codes and accessibility options.
AI-written summary of version 7.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to show country flags in a UI without custom assets
- You want a lightweight, ready‑to‑use flag widget with preloading for smooth scrolling
Skip it when
- You require custom flag designs or non‑SVG formats
- You need a large, regularly updated flag set beyond what the package provides
Strengths
- Simple API and ready‑made flag assets
- Preload method improves list performance
- Semantics options for accessibility
- No extra build steps
Weaknesses
- Limited to the bundled flag set
- Relies on flutter_svg for rendering
- No runtime flag generation
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
CircleFlag('us');
CircleFlag.preload(['fr','us']);Alternatives
Packages that do the same job and could replace circle_flags.
- world_flags
Collection of more than 250 vector-based world flags rendered as widgets without assets.
82Compare - country_picker
A Flutter widget to pick a country from a list with optional phone code and search.
78Compare - country_flags
Displays country flags as SVG or emoji using ISO country, language, currency, or phone prefix codes
69Compare - country_pickers
Provides country picker widgets with flags, ISO codes and phone prefixes.
50Compare
Works with
Packages commonly used together with circle_flags: ones it builds on, ones built on it, and its own family.
- flutter_svgcircle_flags depends on itRenders Scalable Vector Graphics (SVG 1.1) and precompiled vector graphics in Flutter.
- material_uicircle_flags depends on itOfficial Flutter Material UI library implementing Google’s Material Design system.
- phone_form_fieldBuilt on circle_flagsFlutter phone input FormField with internationalization, validation, and country selector.