AppPhoneTextField constructor

const AppPhoneTextField({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? label,
  4. String? hint,
  5. void onChanged(
    1. PhoneNumber
    )?,
  6. void onCountryChanged(
    1. String
    )?,
  7. String? validator(
    1. PhoneNumber?
    )?,
  8. String initialCountryCode = 'NG',
  9. LabelPosition labelPosition = LabelPosition.above,
  10. TextStyle? labelStyle,
  11. double? labelFontSize,
  12. FontWeight? labelFontWeight,
  13. Color? labelColor,
  14. double? labelSpacing,
  15. double? borderRadius,
  16. double? borderWidth,
  17. Color? borderColor,
  18. Color? focusedBorderColor,
  19. Color? errorBorderColor,
  20. Color? backgroundColor,
  21. Color? cursorColor,
  22. Color? textColor,
  23. Color? hintColor,
  24. Color? dropdownIconColor,
  25. bool showDropdownIcon = true,
  26. bool showCountryFlag = true,
  27. bool enabled = true,
  28. bool readOnly = false,
  29. bool isRequired = false,
  30. Color? requiredIndicatorColor,
  31. String? invalidNumberMessage,
  32. bool? enableSecurity,
})

Implementation

const AppPhoneTextField({
  super.key,
  this.controller,
  this.label,
  this.hint,
  this.onChanged,
  this.onCountryChanged,
  this.validator,
  this.initialCountryCode = 'NG',
  this.labelPosition = LabelPosition.above,
  this.labelStyle,
  this.labelFontSize,
  this.labelFontWeight,
  this.labelColor,
  this.labelSpacing,
  this.borderRadius,
  this.borderWidth,
  this.borderColor,
  this.focusedBorderColor,
  this.errorBorderColor,
  this.backgroundColor,
  this.cursorColor,
  this.textColor,
  this.hintColor,
  this.dropdownIconColor,
  this.showDropdownIcon = true,
  this.showCountryFlag = true,
  this.enabled = true,
  this.readOnly = false,
  this.isRequired = false,
  this.requiredIndicatorColor,
  this.invalidNumberMessage,
  this.enableSecurity,
});