A reusable component in Flutter which provides country picker with custom dialogue which can be used in any application.
- Flutter Support
- Demo
- Features
- Getting started
- Usage
- Methods
- Want to Contribute?
- Need Help / Support?
- Collection of Components
- Changelog
- License
- Keywords
Version - Flutter 1.17(stable)
We have tested our program in above version, however you can use it in other versions as well.
- Provides Country Picker with country flag, country name and dial code.
- Customizable header as per requirements.
- Download this sample project and import CountryPicker Widget file in your Flutter App.
- Update Header, Title based on your requirements.
Setup process is described below to integrate in project.
Step 1. Create your Statefull or Stateless Widget
Step 2. Add Country Picker Widget
// Put CountryPicker Widget
CountryPicker(
callBackFunction: _callBackFunction
);
// Create callback function
void _callBackFunction(String name, String dialCode, String flag) {
// place your code
}
Step 3. Pass header text if you want to change otherwise skip it
headerText: 'Select Country',
Step 4. Pass header background color if you want to change otherwise skip it
headerBackgroundColor: Colors.black
Step 5. Pass header text color if you want to change otherwise skip it
headerTextColor: Colors.white
- Created something awesome, made this code better, added some functionality, or whatever (this is the hardest part).
- Fork it.
- Create new branch to contribute your changes.
- Commit all your changes to your branch.
- Submit a pull request.
If you need any help then please contact our Flutter developers.
We have built many other components and free resources for software development in various programming languages. Kindly click here to view our Free Resources for Software Development.
Detailed changes for each release are documented in CHANGELOG.
Flutter Country Picker, Country Picker, Picker, Country Dialogue, Custom Dialogue , Weblineindia