FormCraftTextField constructor

const FormCraftTextField({
  1. required Key globalKey,
  2. required dynamic onChanged(
    1. String value
    ),
  3. List<FormCraftValidator>? validators,
  4. String? initialValue,
  5. UndoHistoryController? undoController,
  6. TextInputType? keyboardType,
  7. TextInputAction? textInputAction,
  8. TextCapitalization textCapitalization = TextCapitalization.none,
  9. TextStyle? style,
  10. StrutStyle? strutStyle,
  11. TextAlign textAlign = TextAlign.start,
  12. TextAlignVertical? textAlignVertical,
  13. TextDirection? textDirection,
  14. bool readOnly = false,
  15. Widget contextMenuBuilder(
    1. BuildContext,
    2. EditableTextState
    )?,
  16. bool? showCursor,
  17. String obscuringCharacter = '•',
  18. bool autofocus = false,
  19. bool obscureText = false,
  20. bool autocorrect = true,
  21. SmartDashesType? smartDashesType,
  22. SmartQuotesType? smartQuotesType,
  23. int? minLines,
  24. int? maxLength,
  25. MaxLengthEnforcement? maxLengthEnforcement,
  26. void onEditingComplete()?,
  27. void onSubmitted(
    1. String
    )?,
  28. void onAppPrivateCommand(
    1. String,
    2. Map<String, dynamic>
    )?,
  29. List<TextInputFormatter>? inputFormatters,
  30. bool? enabled,
  31. double? cursorHeight,
  32. Radius? cursorRadius,
  33. bool? cursorOpacityAnimates,
  34. Color? cursorColor,
  35. Brightness? keyboardAppearance,
  36. bool? enableInteractiveSelection,
  37. TextSelectionControls? selectionControls,
  38. void onTap()?,
  39. void onTapOutside(
    1. PointerDownEvent
    )?,
  40. MouseCursor? mouseCursor,
  41. Widget? buildCounter(
    1. BuildContext, {
    2. required int currentLength,
    3. required bool isFocused,
    4. required int? maxLength,
    })?,
  42. ScrollController? scrollController,
  43. ScrollPhysics? scrollPhysics,
  44. ContentInsertionConfiguration? contentInsertionConfiguration,
  45. String? restorationId,
  46. SpellCheckConfiguration? spellCheckConfiguration,
  47. TextMagnifierConfiguration? magnifierConfiguration,
  48. InputDecoration decorationBuilder(
    1. String? errorMessage
    )?,
  49. bool enableSuggestions = true,
  50. int? maxLines = 1,
  51. double cursorWidth = 2.0,
  52. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  53. BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight,
  54. BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight,
  55. bool expands = false,
  56. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  57. Iterable<String>? autofillHints = const <String>[],
  58. Clip clipBehavior = Clip.hardEdge,
  59. bool scribbleEnabled = true,
  60. bool enableIMEPersonalizedLearning = true,
  61. bool canRequestFocus = true,
  62. String? customErrorMessage,
})

Implementation

const FormCraftTextField({
  required this.globalKey,
  required this.onChanged,
  this.validators,
  this.initialValue,
  this.undoController,
  this.keyboardType,
  this.textInputAction,
  this.textCapitalization = TextCapitalization.none,
  this.style,
  this.strutStyle,
  this.textAlign = TextAlign.start,
  this.textAlignVertical,
  this.textDirection,
  this.readOnly = false,
  this.contextMenuBuilder,
  this.showCursor,
  this.obscuringCharacter = '•',
  this.autofocus = false,
  this.obscureText = false,
  this.autocorrect = true,
  this.smartDashesType,
  this.smartQuotesType,
  this.minLines,
  this.maxLength,
  this.maxLengthEnforcement,
  this.onEditingComplete,
  this.onSubmitted,
  this.onAppPrivateCommand,
  this.inputFormatters,
  this.enabled,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorOpacityAnimates,
  this.cursorColor,
  this.keyboardAppearance,
  this.enableInteractiveSelection,
  this.selectionControls,
  this.onTap,
  this.onTapOutside,
  this.mouseCursor,
  this.buildCounter,
  this.scrollController,
  this.scrollPhysics,
  this.contentInsertionConfiguration,
  this.restorationId,
  this.spellCheckConfiguration,
  this.magnifierConfiguration,
  this.decorationBuilder,
  this.enableSuggestions = true,
  this.maxLines = 1,
  this.cursorWidth = 2.0,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.selectionHeightStyle = ui.BoxHeightStyle.tight,
  this.selectionWidthStyle = ui.BoxWidthStyle.tight,
  this.expands = false,
  this.dragStartBehavior = DragStartBehavior.start,
  this.autofillHints = const <String>[],
  this.clipBehavior = Clip.hardEdge,
  this.scribbleEnabled = true,
  this.enableIMEPersonalizedLearning = true,
  this.canRequestFocus = true,
  this.customErrorMessage,
}) : super(key: globalKey);