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

pub package

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'),
),

Maintainer

Jack Liu