CustomTextField constructor
const
CustomTextField({
- Key? key,
- required TextEditingController controller,
- double? height,
- double? width,
- BoxConstraints? constraints,
- FormFieldValidator<
String> ? validator, - ValueChanged<
String> ? onChanged, - String? hintText,
- TextStyle? hintStyle,
- String? labelText,
- int? limit,
- EdgeInsets? margin,
- bool? obscureText,
- String? initialValue,
- FocusNode? focusNode,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextDirection? textDirection,
- TextAlignVertical? textAlignVertical,
- ToolbarOptions? toolbarOptions,
- bool? showCursor,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- MaxLengthEnforcement? maxLengthEnforcement,
- int? minLines,
- int? maxLength,
- GestureTapCallback? onTap,
- VoidCallback? onEditingComplete,
- ValueChanged<
String> ? onFieldSubmitted, - FormFieldSetter<
String> ? onSaved, - List<
TextInputFormatter> ? inputFormatters, - bool? enabled,
- bool? autofocus,
- TextAlign? textAlign,
- bool? readOnly,
- String? obscuringCharacter,
- bool? autocorrect,
- Radius? cursorRadius,
- double? cursorHeight,
- int? maxLines,
- EdgeInsets? scrollPadding,
- bool? enableIMEPersonalizedLearning,
- Color? cursorColor,
- Brightness? keyboardAppearance,
- bool? enableInteractiveSelection,
- TextSelectionControls? selectionControls,
- InputCounterWidgetBuilder? buildCounter,
- ScrollPhysics? scrollPhysics,
- Iterable<
String> ? autofillHints, - AutovalidateMode? autovalidateMode,
- ScrollController? scrollController,
- String? restorationId,
- Color? fillColor,
- bool? filled,
- MouseCursor? mouseCursor,
- EdgeInsetsGeometry? contentPadding,
- bool? isCollapsed,
- double? floatingLabelHeight,
- double? floatingLabelProgress,
- FloatingLabelAlignment? floatingLabelAlignment,
- InputBorder? border,
- bool? alignLabelWithHint,
- bool? isDense,
- VisualDensity? visualDensity,
- Widget? icon,
- Widget? input,
- Widget? label,
- Widget? hint,
- Widget? prefix,
- Widget? suffix,
- Widget? prefixIcon,
- Widget? suffixIcon,
- Widget? helperError,
- Widget? counter,
- Widget? container,
- bool? expands,
Implementation
const CustomTextField({
Key? key,
required this.controller,
this.height,
this.width,
this.constraints,
this.validator,
this.onChanged,
this.hintText,
this.hintStyle,
this.labelText,
this.limit,
this.margin,
this.obscureText,
this.initialValue,
this.focusNode,
this.keyboardType,
this.textInputAction,
this.style,
this.strutStyle,
this.textDirection,
this.textAlignVertical,
this.toolbarOptions,
this.showCursor,
this.smartDashesType,
this.smartQuotesType,
this.maxLengthEnforcement,
this.minLines,
this.maxLength,
this.onTap,
this.onEditingComplete,
this.onFieldSubmitted,
this.onSaved,
this.inputFormatters,
this.enabled,
this.autofocus,
this.textAlign,
this.readOnly,
this.obscuringCharacter,
this.autocorrect,
this.cursorRadius,
this.cursorHeight,
this.maxLines,
this.scrollPadding,
this.enableIMEPersonalizedLearning,
this.cursorColor,
this.keyboardAppearance,
this.enableInteractiveSelection,
this.selectionControls,
this.buildCounter,
this.scrollPhysics,
this.autofillHints,
this.autovalidateMode,
this.scrollController,
this.restorationId,
this.fillColor,
this.filled,
this.mouseCursor,
this.contentPadding,
this.isCollapsed,
this.floatingLabelHeight,
this.floatingLabelProgress,
this.floatingLabelAlignment,
this.border,
this.alignLabelWithHint,
this.isDense,
this.visualDensity,
this.icon,
this.input,
this.label,
this.hint,
this.prefix,
this.suffix,
this.prefixIcon,
this.suffixIcon,
this.helperError,
this.counter,
this.container,
this.expands,
}) : super(key: key);