IntlPhoneField constructor

const IntlPhoneField({
  1. Key? key,
  2. double? popupWidth,
  3. double? prefixHeight,
  4. double flagWidth = 32,
  5. EdgeInsets? textFieldPadding,
  6. bool? textFieldIsDense,
  7. bool positionedPopup = false,
  8. String? initialCountryCode,
  9. String languageCode = 'en',
  10. bool disableAutoFillHints = false,
  11. bool obscureText = false,
  12. TextAlign textAlign = TextAlign.left,
  13. TextAlignVertical? textAlignVertical,
  14. VoidCallback? onTap,
  15. bool readOnly = false,
  16. String? initialValue,
  17. TextInputType keyboardType = TextInputType.phone,
  18. TextEditingController? controller,
  19. FocusNode? focusNode,
  20. InputDecoration decoration = const InputDecoration(),
  21. TextStyle? style,
  22. TextStyle? dropdownTextStyle,
  23. void onSubmitted(
    1. String
    )?,
  24. FutureOr<String?> validator(
    1. PhoneNumber?
    )?,
  25. ValueChanged<PhoneNumber>? onChanged,
  26. List<Country>? countries,
  27. ValueChanged<Country>? onCountryChanged,
  28. FormFieldSetter<PhoneNumber>? onSaved,
  29. bool showDropdownIcon = true,
  30. BoxDecoration dropdownDecoration = const BoxDecoration(),
  31. List<TextInputFormatter>? inputFormatters,
  32. bool enabled = true,
  33. Brightness? keyboardAppearance,
  34. @Deprecated('Use searchFieldInputDecoration of PickerDialogStyle instead') String searchText = 'Search country',
  35. IconPosition dropdownIconPosition = IconPosition.leading,
  36. Icon dropdownIcon = const Icon(Icons.arrow_drop_down),
  37. bool autofocus = false,
  38. TextInputAction? textInputAction,
  39. AutovalidateMode? autovalidateMode = AutovalidateMode.onUserInteraction,
  40. bool showCountryFlag = true,
  41. Color? cursorColor,
  42. bool disableLengthCheck = false,
  43. EdgeInsetsGeometry flagsButtonPadding = EdgeInsets.zero,
  44. String? invalidNumberMessage = 'Invalid Mobile Number',
  45. double? cursorHeight,
  46. Radius? cursorRadius = Radius.zero,
  47. double cursorWidth = 2.0,
  48. bool? showCursor = true,
  49. PickerDialogStyle? pickerDialogStyle,
  50. EdgeInsets flagsButtonMargin = EdgeInsets.zero,
})

Implementation

const IntlPhoneField({
  Key? key,
  this.popupWidth,
  this.prefixHeight,
  this.flagWidth = 32,
  this.textFieldPadding,
  this.textFieldIsDense,
  this.positionedPopup = false,
  this.initialCountryCode,
  this.languageCode = 'en',
  this.disableAutoFillHints = false,
  this.obscureText = false,
  this.textAlign = TextAlign.left,
  this.textAlignVertical,
  this.onTap,
  this.readOnly = false,
  this.initialValue,
  this.keyboardType = TextInputType.phone,
  this.controller,
  this.focusNode,
  this.decoration = const InputDecoration(),
  this.style,
  this.dropdownTextStyle,
  this.onSubmitted,
  this.validator,
  this.onChanged,
  this.countries,
  this.onCountryChanged,
  this.onSaved,
  this.showDropdownIcon = true,
  this.dropdownDecoration = const BoxDecoration(),
  this.inputFormatters,
  this.enabled = true,
  this.keyboardAppearance,
  @Deprecated('Use searchFieldInputDecoration of PickerDialogStyle instead') this.searchText = 'Search country',
  this.dropdownIconPosition = IconPosition.leading,
  this.dropdownIcon = const Icon(Icons.arrow_drop_down),
  this.autofocus = false,
  this.textInputAction,
  this.autovalidateMode = AutovalidateMode.onUserInteraction,
  this.showCountryFlag = true,
  this.cursorColor,
  this.disableLengthCheck = false,
  this.flagsButtonPadding = EdgeInsets.zero,
  this.invalidNumberMessage = 'Invalid Mobile Number',
  this.cursorHeight,
  this.cursorRadius = Radius.zero,
  this.cursorWidth = 2.0,
  this.showCursor = true,
  this.pickerDialogStyle,
  this.flagsButtonMargin = EdgeInsets.zero,
}) : super(key: key);