simple_phone_countries 1.0.1
simple_phone_countries: ^1.0.1 copied to clipboard
A simple, synchronous Flutter package for phone country codes, dial codes, and SVG country flags
Changelog #
All notable changes to this project will be documented in this file.
1.0.1 #
Added #
- Enhanced documentation with more examples
- Add documentation for CountryFilterOptions constructor
- Reorganize documentation structure
1.0.0 #
Added #
- Initial release
CountryCodeenum with 240+ countries (pre-loaded, no async needed)name- Country namedialCode- International dial codecode- ISO 3166-1 alpha-2 codedialCodeWithoutPlus- Dial code without '+' prefixlowercaseCode- Lowercase country codeflagAssetPath- Path to SVG flag asset
PhoneCountriesutility class with:all- Get all countriescount- Get total country countfindByCode()- Find country by ISO codegetByCode()- Get country by ISO code (throws if not found)findByDialCode()- Find countries by dial codesearchByName()- Search countries by namewhere()- Filter countries with custom predicatesortedByName/sortedByDialCode- Sorted country listsgroupedByAlphabet- Countries grouped by first letter (A-Z)exists()- Check if country code existsdetectFromPhoneNumber()- Detect country from phone numberformatPhoneNumber()- Format phone number with dial codeextractLocalNumber()- Extract local number from international number
- SVG country flags for all countries