FLUTTER ECOSYSTEM

country_flags

A Flutter package to show a flag icon from a ISO country code.

country_flags cover
Latest version
4.1.2
30-day downloads
148K
Likes
176
Pub points
160

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

The country_flags package is a Flutter utility that enables developers to easily display flag icons using ISO country codes. It provides a simple and efficient way to integrate country-specific flags into apps, enhancing user experience with visual context. The package supports multiple platforms including Android, iOS, macOS, Windows, and Linux, ensuring consistent rendering across devices. With minimal setup via the pub add command, it integrates seamlessly into existing Flutter projects. Ideal for applications involving internationalization, user location, or regional selection.

Use cases
  • Displaying user country in profiles
  • Showing regional availability in apps
  • Enhancing multilingual interfaces
  • Visualizing location data
  • Supporting country selection in forms
  • Integrating flags in travel or social apps
Key features
  • Simple ISO code input
  • Cross-platform compatibility
  • Lightweight and fast
  • Predefined flag assets
  • Easy integration with pubspec.yaml
  • Consistent icon styling
Suitable for
  • Internationalized apps
  • User profile features
  • Travel and mapping apps
  • Multilingual platforms
  • Location-based services
  • UIs requiring country visualization
Considerations
  • Requires valid ISO country codes
  • Limited to predefined flag set
  • No custom flag support
  • May increase app size slightly
  • Depends on external asset repository
  • Not suitable for non-country flags
Supported platformsAndroidiOSmacOSWindowsLinux

Install package

flutter pub add country_flags

Categories

Dependencies

Dependency list 2 items

Source repository

Related projects

Rankings