How adellahlouh/country_phone_picker works
Country Phone Picker is a Flutter package for choosing a country and dial code in phone-number forms. A host app embeds the picker; the user opens its bottom sheet, searches or browses countries, and selects one, triggering an onChanged callback with a CountryModel. The README also documents country data, localized names, search, filtering, and sheet customization. Internal call relationships are not shown in the supplied source excerpts, so edges below represent documented product behavior rather than inspected implementation calls.
Main entry points: country_phone_picker_bottom_sheet.dart Picker Sheet · src/country_phone_picker.dart Picker Widget · country_picker_localizations.dart Localization · lib/country_phone_picker.dart Public API
Components 11
Picker UI
- Public API
lib/country_phone_picker.dart - Picker Widget
lib/src/country_phone_picker.dart - Picker Sheet
lib/src/country_phone_picker_bottom_sheet.dart
Country Data
- Country Model
lib/src/country_model.dart - Country Codes
lib/src/country_picker_codes.dart
Localization and Config
- Search Config
lib/src/search_config.dart - Sheet Config
lib/src/bottom_sheet_config.dart - Localization
lib/src/country_picker_localizations.dart - Translations
lib/src/i18n
Other components
- User
- Host App
Connections 9
- Host App → Public API: integrates
README.md - User → Picker Widget: opens picker
README.md - Picker Widget → Picker Sheet: shows sheet
README.md - Picker Widget → Country Model: emits selection
README.md - Picker Sheet → Country Codes: lists countries
README.md - Picker Sheet → Search Config: supports search
README.md - Picker Sheet → Sheet Config: uses customization
README.md - Picker Sheet → Localization: shows localized names
README.md - Localization → Translations: provides translations
README.md