FlagsDropDown constructor
const
FlagsDropDown({
- Key? key,
- ValueKey? flagsButtonKey,
- String? initialCountryCode = 'BD',
- List<
Country> countries = const [], - List<
String> favorite = const [], - bool showDropdownIcon = true,
- Widget dropdownIcon = const Icon(Icons.arrow_drop_down),
- Position dropdownIconPosition = Position.leading,
- bool showDialogCountryFlag = true,
- BoxDecoration dropdownDecoration = const BoxDecoration(),
- EdgeInsetsGeometry flagsButtonPadding = EdgeInsets.zero,
- EdgeInsets flagsButtonMargin = EdgeInsets.zero,
- double? flagWidth = 32,
- TextStyle? dropdownTextStyle,
- bool disableFlagTap = false,
- String? languageCode,
- bool? rltSupport,
- PickerDialogStyle? pickerDialogStyle,
- Widget? favoriteIcon,
- Position favoriteIconPosition = Position.leading,
- bool? enableFavoriteIcon,
- Position fieldCountryCodePosition = Position.trailing,
- Position favoriteCountryCodePosition = Position.leading,
- Position dialogCountryCodePosition = Position.trailing,
- ValueChanged<
Country> ? onCountryChanged, - bool countryCodeDisable = false,
- bool showFieldCountryFlag = true,
- double? countryPickerDialogBoxHeight,
Implementation
const FlagsDropDown({
super.key,
this.flagsButtonKey,
this.initialCountryCode = 'BD',
this.countries = const [],
this.favorite = const [],
this.showDropdownIcon = true,
this.dropdownIcon = const Icon(Icons.arrow_drop_down),
this.dropdownIconPosition = Position.leading,
this.showDialogCountryFlag = true,
this.dropdownDecoration = const BoxDecoration(),
this.flagsButtonPadding = EdgeInsets.zero,
this.flagsButtonMargin = EdgeInsets.zero,
this.flagWidth = 32,
this.dropdownTextStyle,
this.disableFlagTap = false,
this.languageCode,
this.rltSupport,
this.pickerDialogStyle,
this.favoriteIcon,
this.favoriteIconPosition = Position.leading,
this.enableFavoriteIcon,
this.fieldCountryCodePosition = Position.trailing,
this.favoriteCountryCodePosition = Position.leading,
this.dialogCountryCodePosition = Position.trailing,
this.onCountryChanged,
this.countryCodeDisable = false,
this.showFieldCountryFlag = true,
this.countryPickerDialogBoxHeight,
});