countrify
2.5.0, released 7 months ago by gocodeable.com
Country, state, and city picker with 250 countries and phone input fields.
What it does
A feature-rich selection package providing widgets for countries, states, cities, and phone numbers with 132 language translations and zero runtime dependencies. It offers five display modes, built-in themes, search filtering, and custom flag support.
AI-written summary of version 2.5.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a country code or phone number input field with country prefixes.
- Your application requires hierarchical country, state, and city selection.
- You want localized country names across multiple languages without external runtime dependencies.
Skip it when
- You only need a simple dropdown without country data or flag assets.
Strengths
- Zero runtime dependencies
- Comes with 250 countries, 5,296+ states, 153,000+ cities, and 132 language translations
- Includes specialized widgets like PhoneNumberField, CountryDropdownField, and CitySearchField
- Supports five different display modes including bottom sheet, dialog, full screen, dropdown, and inline
Weaknesses
- Larger asset footprint due to bundled PNG flag assets for all 250 countries
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
PhoneNumberField(
initialCountryCode: CountryCode.us,
onChanged: (phoneNumber, country) {
print('Full number: +${country.callingCodes.first}$phoneNumber');
},
)Alternatives
Packages that do the same job and could replace countrify.
- searchfield
An autocomplete search widget with customizable suggestions, validation, and keyboard navigation.
79Compare - calendar_date_picker2
A customizable Flutter calendar picker with single, multi, and range selection modes.
83Compare - country_state_city
Display a list of world-wide countries, states, and cities depending on given country.
48Compare - datepicker_dropdown
A customizable dropdown date picker widget for Flutter with localization and form validation.
64Compare