CountryListPicker is a customizable country picker for Flutter.
The sizes and styles used for the picker items can be customized.
The CountryListPicker allows to select a country from a list.
The CountryListPicker can show many different languages.
It can be customized with various properties such as initialCountry, language, textDirection and more.
It has various callback properties for events such as onCountryChanged, onChanged and others.
It throws an error if isShowFlag and isShowDiallingCode both are set to false.
note that: if 'border' property of the 'inputTheme'is not equal InputBorder.none, the border will be canceled.
simple code
Use with the Countries Enumration Type to show specific intial country.
Countries are identified by their name as listed below, e.g. Countries.Egypt.
default value is Countries.Egypt
isShowCountryName is a bool variable that determines whether or not to display the title of the country.
If set to true, the title will be shown, and if set to false, the title will be hidden.
This variable is declared as final, indicating that it can't be reassigned after being initialized.
isShowDiallingCode is a bool variable that determines whether or not to display the dialling code of the country.
If set to true, the dialling code will be shown, and if set to false, the dialling code will be hidden.
This variable is declared as final, indicating that it can't be reassigned after being initialized.
isShowDownIcon is a bool variable that determines whether or not to display the down icon.
If set to true, the down icon will be shown, and if set to false, the down icon will be hidden.
This variable is declared as final, indicating that it can't be reassigned after being initialized.
isShowFlag is a bool variable that determines whether or not to display the flag of the country.
If set to true, the flage will be shown, and if set to false, the flag will be hidden.
This variable is declared as final, indicating that it can't be reassigned after being initialized.
isShowInputField is a bool variable that determines whether or not to display the input field.
If set to true, the input field will be shown, and if set to false, the input field will be hidden.
This variable is declared as final, indicating that it can't be reassigned after being initialized.
Use with the Languages Enumration Type to show specific language.
Languages are identified by their name as listed below, e.g. Language.Arabic.
default value is Language.English
Use with the Countries Enumration Type to show specific local country.
Countries are identified by their name as listed below, e.g. Countries.Egypt.
default value is null