dunya 1.0.1
dunya: ^1.0.1 copied to clipboard
Pure-Dart country data & phone validation. 250 countries, ranked search, E.164 parsing, 13-locale translations. Powers dunya_ui. Zero Flutter dependency.
Changelog #
1.0.1 - 2026-06-26 #
Fixed #
- Shortened pubspec description to comply with pub.dev 60-180 character limit
All notable changes documented here. Format: Keep a Changelog
1.0.0 - 2026-03-26 #
Added #
- Phone validation:
PhoneValidatorwith per-country min/max digit lengths (180+ countries) - Phone number parsing:
PhoneNumber.parse()returns nationalNumber, internationalNumber, e164, dialCode, alpha2, isValid - Favorites:
CountryFavorites.reorder()pins countries to top in specified order - Recents:
CountryRecentstracks recently selected countries (in-memory) - Localization:
CountryLocalizationsregistry with 13 built-in locales (AR, DE, ES, FR, HI, IT, JA, KO, PT, RU, TR, UR, ZH) - Locale-aware search:
CountrySearch.search()now accepts optionallocaleparameter - Controller locale:
CountryPickerController.localesetter for localized search - Dial code lookup:
CountryRepository.findByDialCode() - Phone metadata:
PhoneMetadatamodel,PhoneValidator.metadataFor(),maxLengthFor(),minLengthFor() - Strip formatting:
PhoneNumber.stripFormatting()public utility
0.1.0 - 2026-03-19 #
Added #
- Country model with ISO 3166-1 data (CC0, mledoze/countries)
- CountryRepository: all 250 countries, findByAlpha2, findByAlpha3
- CountryPickerController: search, select, clear, filterByRegion, streams, 150ms debounce
- CountrySearch: ranked priority search (alpha2 > dial > name > native > alpha3)