flutter_country_widget 3.0.2
flutter_country_widget: ^3.0.2 copied to clipboard
Flutter pre-defined widget by using country, generated country class by using countries.
flutter_country_widget #
Flutter pre-defined widget by using country, generated country class by using countries.
Getting Started #
Install #
Add the following lines in your pubspec.yaml file
dependencies:
flutter_country_widget: ^latest_version
API #
- CountryDropdownButton
CountryDropdownButton.predefined(
type: CountryDropDownButtonType.name,
onChanged: (value) {},
hint: const Text('Please select a country'),
),
CountryDropdownButton.predefined(
type: CountryDropDownButtonType.callingCode,
onChanged: (value) {},
hint: const Text('Phone code'),
),
CountryDropdownButton.predefined(
type: CountryDropDownButtonType.currency,
onChanged: (value) {},
hint: const Text('Currency'),
),