canopas_country_picker
0.0.10, released 2 years ago by canopas.com
A simple customizable Flutter widget for picking a country or dialing code with search support.
What it does
The package provides a bottom‑sheet, dialog, and inline widget to let users select a country or its calling code. It includes search, localization, and helpers to get codes by alpha‑2 or dial code, plus utilities to fetch the current country via IP or device locale.
AI-written summary of version 0.0.10, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a ready‑made country or dialing‑code selector in your UI
- You want searchable, localized country lists without building them yourself
Skip it when
- You require a fully offline solution without external IP lookups
- You need a highly custom UI that the provided builders cannot accommodate
Strengths
- Multiple presentation modes (sheet, dialog, widget)
- Searchable and customizable list items
- Helpers for alpha‑2, dial code, and current country lookup
Weaknesses
- Relies on an external IP API for current country detection
- Limited to country‑code data only
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
CountryCode? code = await showCountryCodePickerSheet(context: context);Alternatives
Packages that do the same job and could replace canopas_country_picker.
- re_editor
A lightweight text and code editor widget for Flutter with syntax highlighting and folding.
80Compare - country_picker
A Flutter widget to pick a country from a list with optional phone code and search.
78Compare - wheel_picker
A customizable wheel scroll picker widget for selecting values or time.
79Compare - country_flags
Displays country flags as SVG or emoji using ISO country, language, currency, or phone prefix codes
69Compare