FieldStyleTextField constructor
FieldStyleTextField({
- VoidCallback? onEditingComplete,
- ValueChanged<
String> ? onSubmitted, - ScrollController? scrollController,
- ScrollPhysics? scrollPhysics,
- Iterable<
String> ? autofillHints, - dynamic handleValidationError(
- FormValidationResult handleError
- bool? passwordVisible,
- Widget? prefixIcon,
- Color? backgroundColor,
- BorderRadius? borderRadius,
- InputBorder? border,
- InputBorder? focusedBorder,
- InputBorder? enabledBorder,
- EdgeInsetsGeometry? contentPadding,
- bool? passwordViewable,
- bool? validateOnFocusChange,
- bool customValidationRule(
- dynamic value
- Widget? header,
- bool? clearable,
- Widget? clearIcon,
- String? mask,
- String? maskMatch,
- bool? maskedReturnValue,
- DecoratorTextField? decorator,
- String? labelText,
- TextStyle? labelStyle,
- TextEditingController? controller,
- bool obscureText = false,
- int? maxLines,
- int? minLines,
- TextInputType keyboardType = TextInputType.text,
- bool autoFocus = false,
- TextAlign? textAlign,
- bool enableSuggestions = true,
- FocusNode? focusNode,
- String? hintText,
- TextStyle? hintStyle,
- String? dummyData,
- dynamic onChanged(
- String value
- TextInputAction? textInputAction,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextAlignVertical? textAlignVertical,
- TextDirection? textDirection,
- String obscuringCharacter = '•',
- bool autocorrect = true,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- bool expands = false,
- bool readOnly = false,
- bool? showCursor = true,
- int? maxLength,
- MouseCursor? mouseCursor,
- String? validationErrorMessage,
- TextCapitalization textCapitalization = TextCapitalization.none,
- MaxLengthEnforcement? maxLengthEnforcement = MaxLengthEnforcement.enforced,
- AppPrivateCommandCallback? onAppPrivateCommand,
- List<
TextInputFormatter> ? inputFormatters = const [], - bool? enabled = true,
- double cursorWidth = 2.0,
- double? cursorHeight,
- Radius? cursorRadius = const Radius.circular(2.0),
- Color? cursorColor = Colors.black87,
- Brightness? keyboardAppearance,
- EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
- TextSelectionControls? selectionControls = null,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- GestureTapCallback? onTap,
- TapRegionCallback? onTapOutside,
- InputDecoration? decoration,
- Clip clipBehavior = Clip.hardEdge,
- Color? fillColor,
- bool? filled = false,
- bool? isDense = false,
- Widget? suffixIcon,
Implementation
FieldStyleTextField({
this.onEditingComplete,
this.onSubmitted,
this.scrollController,
this.scrollPhysics,
this.autofillHints,
this.handleValidationError,
this.passwordVisible,
this.prefixIcon,
this.backgroundColor,
this.borderRadius,
this.border,
this.focusedBorder,
this.enabledBorder,
this.contentPadding,
this.passwordViewable,
this.validateOnFocusChange,
this.customValidationRule,
this.header,
this.footer,
this.clearable,
this.clearIcon,
this.mask,
this.maskMatch,
this.maskedReturnValue,
this.decorator,
this.labelText,
this.labelStyle,
this.controller,
this.obscureText = false,
this.maxLines,
this.minLines,
this.keyboardType = TextInputType.text,
this.autoFocus = false,
this.textAlign,
this.enableSuggestions = true,
this.focusNode,
this.hintText,
this.hintStyle,
this.dummyData,
this.onChanged,
this.textInputAction,
this.style,
this.strutStyle,
this.textAlignVertical,
this.textDirection,
this.obscuringCharacter = '•',
this.autocorrect = true,
this.smartDashesType,
this.smartQuotesType,
this.expands = false,
this.readOnly = false,
this.showCursor = true,
this.maxLength,
this.mouseCursor,
this.validationErrorMessage,
this.textCapitalization = TextCapitalization.none,
this.maxLengthEnforcement = MaxLengthEnforcement.enforced,
this.onAppPrivateCommand,
this.inputFormatters = const [],
this.enabled = true,
this.cursorWidth = 2.0,
this.cursorHeight,
this.cursorRadius = const Radius.circular(2.0),
this.cursorColor = Colors.black87,
this.keyboardAppearance,
this.scrollPadding = const EdgeInsets.all(20.0),
this.selectionControls = null,
this.dragStartBehavior = DragStartBehavior.start,
this.onTap,
this.onTapOutside,
InputDecoration? decoration,
this.clipBehavior = Clip.hardEdge,
this.fillColor,
this.filled = false,
this.isDense = false,
this.suffixIcon,
}) : decoration = decoration;