Skip to main content

flutter_flag_selector 1.0.0 copy "flutter_flag_selector: ^1.0.0" to clipboard
flutter_flag_selector: ^1.0.0 copied to clipboard

A highly customizable Flutter country picker widget with 20+ languages, SVG flags, search functionality, and multiple display modes. Perfect for phone number inputs and international forms.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.0.0 - 2026-10-27 #

First stable release.

Added #

  • flagSelectorUseDeviceCountry (default true): without a valid flagSelectorInitialCountry, the selector preselects the device's country (read from the platform locale) instead of the first country of the list.
  • 12 missing countries and territories: Germany, Greenland, Guadeloupe, Hong Kong, Kosovo, Macao, Martinique, Mayotte, New Caledonia, Palestine, Puerto Rico and Réunion, translated in all supported languages.
  • Screenshots declared for the pub.dev gallery.
  • Widget tests covering initial country, device country, custom lists, localized names and selection.

Fixed #

  • The selected country label now uses flagSelectorLanguageCode (it was always shown in English).
  • Country.getName() now defaults to English (it defaulted to Spanish).
  • Country list items no longer trigger the "ListTile background color or ink splashes may be invisible" assertion, and their tap effect is visible.
  • Internal imports use package: URIs; a malformed relative import broke compilation in some setups (including the test suite).
  • Broken demo image in the README.
  • Search now stays within flagSelectorCountries (it searched all countries, so a restricted picker could list countries outside its list). CountryService.search() accepts an optional countries list.

Documentation #

  • The README feature table now describes this package only; the comparison with other packages was removed.

Changed #

  • Removed the unused font_awesome_flutter dependency.
  • Reduced topics to 5, the maximum allowed by pub.dev.

0.0.2 - 2026-01-05 #

Added #

  • Dialog mode for country picker with complete property propagation
  • Popup menu mode with correct positioning and full customization support
  • Draggable sheet mode with resize capability for enhanced user experience
  • Advanced search functionality by country dial code
  • Case-insensitive country code matching for better usability
  • Validation for empty country lists to prevent runtime errors

Improved #

  • Country picker performance with optimized rendering
  • Flag display quality with improved SVG rendering
  • User experience with automatic modal closure after country selection
  • Error handling for invalid initial country codes
  • Popup menu positioning accuracy
  • Animation smoothness in draggable sheet mode
  • Code documentation with comprehensive dartdoc comments

Fixed #

  • Dialog mode property propagation issues
  • Popup menu positioning problems
  • Modal closure behavior across all display modes
  • Linter warnings and code quality issues

Changed #

  • Refactored dialog picker implementation for better maintainability
  • Refactored popup menu picker implementation
  • Updated README.md with comprehensive examples and SEO optimization
  • Enhanced property documentation for better developer experience

0.0.1 2025-01-XX #

Added #

  • Initial release with basic country selector functionality
  • Modal bottom sheet display mode for country selection
  • Multilingual support for 20+ languages
  • SVG flag rendering with high-quality graphics
  • Basic customization options for selector appearance
  • Country search functionality by name and code
  • Support for international phone number inputs with dial codes
5
likes
140
points
1.33k
downloads
screenshot

Documentation

Documentation
API reference

Publisher

verified publisherdissangkevin.work

Weekly Downloads

A highly customizable Flutter country picker widget with 20+ languages, SVG flags, search functionality, and multiple display modes. Perfect for phone number inputs and international forms.

Repository (GitHub)
View/report issues
Contributing

Topics

#country-picker #flags #i18n #localization #phone

License

MIT (license)

Dependencies

flutter, flutter_svg

More

Packages that depend on flutter_flag_selector