TextFieldRF constructor
TextFieldRF({
- Object? model,
- required String field,
- TextInputType? inputType,
- int? maxLength,
- int maxLines = 1,
- String? hintText,
- TextStyle? hintStyle,
- String? hint,
- String? label,
- String? caption,
- FormFieldSetter<
String> ? onSaved, - FormFieldValidator<
String> ? validator, - bool enabled = true,
- ValueChanged<
String> ? onFieldSubmitted, - Function? validator1,
- Function? onChange,
- Color? backgroundColor,
- Color? textColor,
- Color? borderColor,
- double? fontSize,
- double? borderWidth,
- double? borderRadius,
- WidgetStyleRF? widgetStyle,
- String? fontFamily,
- TextStyle? textStyle,
- TextAlign textAlign = TextAlign.start,
- TextAlignVertical? textAlignVertical,
- TextDirection? textDirection,
- TextCapitalization textCapitalization = TextCapitalization.none,
- TextInputAction? textInputAction,
- bool autocorrect = true,
- Iterable<
String> ? autofillHints, - bool autofocus = false,
- bool obscureText = false,
- Color? cursorColor,
- double? cursorHeight,
- Radius? cursorRadius,
- double cursorWidth = 2.0,
- bool expands = false,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- List<
TextInputFormatter> ? inputFormatters, - dynamic onTap()?,
- bool enableInteractiveSelection = true,
- bool enableSuggestions = true,
- Brightness? keyboardAppearance,
- int? minLines,
- MouseCursor? mouseCursor,
- ScrollController? scrollController,
- MaxLengthEnforcement? maxLengthEnforcement,
- String obscuringCharacter = '•',
- bool? readOnly = false,
- EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
- ScrollPhysics? scrollPhysics,
- AppPrivateCommandCallback? onAppPrivateCommand,
- dynamic onEditingComplete()?,
- dynamic onSubmitted()?,
- String? restorationId,
- bool? showCursor,
- InputCounterWidgetBuilder? buildCounter,
- TextSelectionControls? selectionControls,
- BoxHeightStyle selectionHeightStyle = BoxHeightStyle.tight,
- BoxWidthStyle selectionWidthStyle = BoxWidthStyle.tight,
- SmartDashesType? smartDashesType,
- bool enableIMEPersonalizedLearning = true,
- SmartQuotesType? smartQuotesType,
- StrutStyle? strutStyle,
- ToolbarOptions? toolbarOptions,
- Widget? prefixIcon,
- Widget? suffixIcon,
- InputDecoration? inputDecoration,
- BoxDecoration? decoration,
- Widget? placeholder,
- EdgeInsets padding = const EdgeInsets.only(left: 8, right: 8, top: 2),
- InputBorder? inputBorder,
Implementation
TextFieldRF({
this.model,
required this.field,
this.inputType,
this.maxLength,
this.maxLines = 1,
this.hintText,
this.hintStyle,
this.hint,
this.label,
this.caption,
this.onSaved,
this.validator,
this.enabled = true,
this.onFieldSubmitted,
this.validator1,
this.onChange,
this.backgroundColor,
this.textColor,
this.borderColor,
this.fontSize,
this.borderWidth,
this.borderRadius,
this.widgetStyle,
this.fontFamily,
this.textStyle,
this.textAlign = TextAlign.start,
this.textAlignVertical,
this.textDirection,
this.textCapitalization = TextCapitalization.none,
this.textInputAction,
this.autocorrect = true,
this.autofillHints,
this.autofocus = false,
this.obscureText = false,
this.cursorColor,
this.cursorHeight,
this.cursorRadius,
this.cursorWidth = 2.0,
this.expands = false,
this.dragStartBehavior = DragStartBehavior.start,
this.inputFormatters,
this.onTap,
this.enableInteractiveSelection = true,
this.enableSuggestions = true,
this.keyboardAppearance,
this.minLines,
this.mouseCursor,
this.scrollController,
this.maxLengthEnforcement,
this.obscuringCharacter = '•',
this.readOnly = false,
this.scrollPadding = const EdgeInsets.all(20.0),
this.scrollPhysics,
this.onAppPrivateCommand,
this.onEditingComplete,
this.onSubmitted,
this.restorationId,
this.showCursor,
this.buildCounter,
this.selectionControls,
this.selectionHeightStyle = BoxHeightStyle.tight,
this.selectionWidthStyle = BoxWidthStyle.tight,
this.smartDashesType,
this.enableIMEPersonalizedLearning = true,
this.smartQuotesType,
this.strutStyle,
this.toolbarOptions,
this.prefixIcon,
this.suffixIcon,
this.inputDecoration,
this.decoration,
this.placeholder,
this.padding = const EdgeInsets.only(left: 8, right: 8, top: 2),
this.inputBorder,
});