AppPhoneTextField constructor
const
AppPhoneTextField({
- Key? key,
- TextEditingController? controller,
- String? label,
- String? hint,
- void onChanged(
- PhoneNumber
- void onCountryChanged()?,
- String? validator(
- PhoneNumber?
- String initialCountryCode = 'NG',
- LabelPosition labelPosition = LabelPosition.above,
- TextStyle? labelStyle,
- double? labelFontSize,
- FontWeight? labelFontWeight,
- Color? labelColor,
- double? labelSpacing,
- double? borderRadius,
- double? borderWidth,
- Color? borderColor,
- Color? focusedBorderColor,
- Color? errorBorderColor,
- Color? backgroundColor,
- Color? cursorColor,
- Color? textColor,
- Color? hintColor,
- Color? dropdownIconColor,
- bool showDropdownIcon = true,
- bool showCountryFlag = true,
- bool enabled = true,
- bool readOnly = false,
- bool isRequired = false,
- Color? requiredIndicatorColor,
- String? invalidNumberMessage,
- 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,
});