CustomInputFormField constructor
CustomInputFormField({
- required TextEditingController controller,
- required FocusNode focusNode,
- required ValueChanged<
String> onChange, - Key? key,
- FocusNode? focusNodeNext,
- GestureTapCallback? onClearIconTap,
- Widget? clearIcon,
- Color? focusBorderColor,
- bool hasClearIcon = false,
- dynamic onSubmit()?,
- int maxLine = 1,
- IconData? prefixIcon,
- Widget? suffixIcon,
- TextStyle? hintTextStyle,
- TextStyle? titleStyle,
- TextStyle? labelTextStyle,
- TextStyle? contentStyle,
- Widget? titleIcon,
- bool hasTitleIcon = false,
- String? title,
- EdgeInsetsGeometry? contentPadding,
- EdgeInsetsGeometry? textFormFieldMargin,
- bool hasTitle = false,
- String? hintText,
- String? labelText,
- bool hasPrefixIcon = false,
- bool hasSuffixIcon = false,
- bool isPassword = false,
- TextInputType textInputType = TextInputType.phone,
- FormFieldValidator<
String> ? validator, - List<
TextInputFormatter> ? inputFormatters, - double? width,
- double? height,
- Color? backgroundColor,
- TextInputAction textInputAction = TextInputAction.done,
- bool hasEmpty = false,
- bool isBoxShadow = false,
- String? textValue,
- AutovalidateMode autovalidate = AutovalidateMode.onUserInteraction,
- bool? isEnable = true,
- int? maxLenght = 200,
- bool isPasswordVisible = false,
- Widget? prefixIconCustom,
- GestureTapCallback? onSuffixIconTap,
- Color? iconColor,
- Color? disableBorderColor,
- Color? enabledBorder,
- Color? border,
- TextStyle? floatingLabelStyle,
- double? radius,
- TextStyle? errorStyle,
- bool isThemeTitleTop = false,
- TextAlign? textAlign,
Implementation
CustomInputFormField(
{required this.controller,
required this.focusNode,
required this.onChange,
this.key,
this.focusNodeNext,
this.onClearIconTap,
this.clearIcon,
this.focusBorderColor,
this.hasClearIcon = false,
this.onSubmit,
this.maxLine = 1,
this.prefixIcon,
this.suffixIcon,
this.hintTextStyle,
this.titleStyle,
this.labelTextStyle,
this.contentStyle,
this.titleIcon,
this.hasTitleIcon = false,
this.title,
this.contentPadding,
this.textFormFieldMargin,
this.hasTitle = false,
this.hintText,
this.labelText,
this.hasPrefixIcon = false,
this.hasSuffixIcon = false,
this.isPassword = false,
this.textInputType = TextInputType.phone,
this.validator,
this.inputFormatters,
this.width,
this.height,
this.backgroundColor,
this.textInputAction = TextInputAction.done,
this.hasEmpty = false,
this.isBoxShadow = false,
this.textValue,
this.autovalidate = AutovalidateMode.onUserInteraction,
this.isEnable = true,
this.maxLenght = 200,
this.isPasswordVisible = false,
this.prefixIconCustom,
this.onSuffixIconTap,
this.iconColor,
this.disableBorderColor,
this.enabledBorder,
this.border,
this.floatingLabelStyle,
this.radius,
this.errorStyle,
this.isThemeTitleTop = false,
this.textAlign});