A new Flutter package for country picker. ola_like_country_picker provides a bottom sheet allowing a user to select a country(with flag and dialcode)(optional) from a list.
Package selection guidance compiled from public package information, community data, and project usage.
A Flutter package that provides a bottom sheet for selecting countries, displaying flags and optional dial codes. It offers a clean, user-friendly interface for country selection, ideal for forms requiring international phone number input. The package is lightweight and integrates seamlessly into existing Flutter apps. It supports customization and is designed with a modern, intuitive UX in mind.
Use cases
International phone number input
User profile country selection
Multi-language app localization
Travel or shipping form country picker
Authentication flow country selection
Key features
Bottom sheet UI
Country flags display
Optional dial code support
Customizable appearance
Easy integration with Flutter forms
Lightweight and fast
Suitable for
Mobile apps needing country selection
Forms requiring phone number input
Apps targeting global users
Developers seeking simple country picker
UI-focused Flutter projects
Considerations
Limited to country and dial code only
No built-in search functionality
Does not support region filtering
Requires manual handling of selected country data
No offline mode specified
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
Ola Like Country Picker
A new country picker Flutter package built in Dart.
To use the Country Picker look at the example below :
Example Usage:
class_MyHomePageStateextendsState<MyHomePage> {
CountryPicker countryPicker;
Country country = Country.fromJson(countryCodes[0]); // select initial country @overridevoidinitState() {
super.initState();
countryPicker = CountryPicker(onCountrySelected: (Country country) {
print(country);
setState(() {
this.country = country;
});
});
}
@overrideWidgetbuild(BuildContext context) {
// To simply launch the country picker// use countryPicker.launch(context)// to forcefully dismiss use countryPicker.dismiss()// simple example could bereturnGestureDetector(
child: Container(
decoration: BoxDecoration(
image: DecorationImage(
image:
AssetImage(country.flagUri, package: 'ola_like_country_picker'),
),
),
),
onTap: () {
countryPicker.launch(context);
},
);
}
}
Output
Parameters
parameter
default
required
type
remark
onCountrySelected
null
yes
OnCountrySelectedCallback
called when country is selected.
showTitle
true
no
bool
whether to show title or not.
titleText
"Select your country"
no
String
text for title.
To simply use country list view any where use CountryListView() and to modify attributes like flagWidth, flagHeight, countryTitle style etc use below arguments like