CustomTextField constructor
const
CustomTextField({
- Key? key,
- required String title,
- String? iconName,
- dynamic onChange(
- String v
- String? trailingIconName,
- Widget? trailingIconWidget,
- Color? color,
- Color? borderColor,
- EdgeInsets? padding,
- Color? trailingIconColor,
- bool autoFocus = false,
- TextEditingController? controller,
- TextInputType? keyboardType,
- bool password = false,
- VoidCallback? handleShowPassword,
- TextInputAction? textInputAction,
- String? errorText,
- String? validator(
- String? v
- bool enabled = true,
- TextStyle? textStyle,
- TextStyle? hintStyle,
- bool? requiredField,
- BorderRadius? borderRadius,
- int? maxLines,
- int? minLines,
- String? initialValue,
- Widget? trailingIcon,
- int? maxLength,
- BoxDecoration? decoration,
- dynamic onSubmitted(
- String v
- Color? backgroundColor,
- Widget? leadingIcon,
- bool? obscureText,
- FocusNode? focusNode,
- List<
TextInputFormatter> ? inputFormatters, - CrossAxisAlignment? crossAxisAlignment,
- InputDecoration? inputDecoration,
- Widget? buildCounter(
- BuildContext, {
- required int currentLength,
- required bool isFocused,
- required int? maxLength,
Implementation
const CustomTextField({
Key? key,
required this.title,
this.iconName,
this.onChange,
this.trailingIconName,
this.trailingIconWidget,
this.color,
this.borderColor,
this.padding,
this.trailingIconColor,
this.autoFocus = false,
this.controller,
this.keyboardType,
this.password = false,
this.handleShowPassword,
this.textInputAction,
this.errorText,
this.validator,
this.enabled = true,
this.textStyle,
this.hintStyle,
this.requiredField,
this.borderRadius,
this.maxLines,
this.minLines,
this.initialValue,
this.trailingIcon,
this.maxLength,
this.decoration,
this.onSubmitted,
this.backgroundColor,
this.leadingIcon,
this.obscureText,
this.focusNode,
this.inputFormatters,
this.crossAxisAlignment,
this.inputDecoration,
this.buildCounter,
}) : super(key: key);