Skip to content
pubscout

dash_flags

0.1.1, released 4 years ago by moaz.dev

Flutter widgets to display country, language, and timezone flags.

WASM-ready
$ flutter pub add dash_flags
Source repository

What it does

Provides a set of widgets and enums to render flags of countries, languages, and timezones using SVG assets. Supports loading flags via specific enums or custom code strings.

AI-written summary of version 0.1.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to display country flags in your Flutter application.
  • You need to display language or timezone flags easily using widgets.

Skip it when

  • You need automated testing support, as tests are currently missing.
  • You need to dynamically load flags from the internet via network URLs.

Strengths

  • Easy to use with dedicated widgets like CountryFlag, LanguageFlag, and TimezoneFlag.
  • Supports lookup by standard codes or enums.

Weaknesses

  • Tests are not yet implemented.
  • No built-in method to fetch flags directly from the internet.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
CountryFlag(
  country: Country.eg,
  height: 50,
)

Alternatives

Packages that do the same job and could replace dash_flags.

  • circle_flags

    Provides a CircleFlag widget to display circular country flag SVGs.

  • world_flags

    Collection of more than 250 vector-based world flags rendered as widgets without assets.

  • country_picker

    A Flutter widget to pick a country from a list with optional phone code and search.

  • country_flags

    Displays country flags as SVG or emoji using ISO country, language, currency, or phone prefix codes

Works with

Packages commonly used together with dash_flags: ones it builds on, ones built on it, and its own family.