AdeptTextField constructor

const AdeptTextField({
  1. Key? key,
  2. AdeptTextEditingController? controller,
  3. FocusNode? focusNode,
  4. InputDecoration? decoration,
  5. TextInputType? keyboardType,
  6. TextInputAction? textInputAction,
  7. TextCapitalization? textCapitalization,
  8. TextStyle? style,
  9. TextAlign? textAlign,
  10. TextDirection? textDirection,
  11. bool? autofocus,
  12. bool? obscureText,
  13. bool? autocorrect,
  14. int? maxLines,
  15. int? maxLength,
  16. MaxLengthEnforcement? maxLengthEnforcement,
  17. ValueChanged<String>? onChanged,
  18. bool? listenOnControllerChanged,
  19. VoidCallback? onEditingComplete,
  20. ValueChanged<String>? onSubmitted,
  21. List<TextInputFormatter>? inputFormatters,
  22. bool? enabled,
  23. double? cursorWidth,
  24. Radius? cursorRadius,
  25. Color? cursorColor,
  26. Brightness? keyboardAppearance,
  27. EdgeInsets? scrollPadding,
  28. bool? enableInteractiveSelection,
  29. TextSelectionControls? selectionControls,
  30. GestureTapCallback? onTap,
  31. TapRegionCallback? onTapOutside,
  32. StrutStyle? strutStyle,
  33. TextAlignVertical? textAlignVertical,
  34. bool? readOnly,
  35. bool? showCursor,
  36. String? obscuringCharacter,
  37. SmartDashesType? smartDashesType,
  38. SmartQuotesType? smartQuotesType,
  39. bool? enableSuggestions,
  40. int? minLines,
  41. bool? expands,
  42. AppPrivateCommandCallback? onAppPrivateCommand,
  43. double? cursorHeight,
  44. BoxHeightStyle? selectionHeightStyle,
  45. BoxWidthStyle? selectionWidthStyle,
  46. DragStartBehavior? dragStartBehavior,
  47. MouseCursor? mouseCursor,
  48. InputCounterWidgetBuilder? buildCounter,
  49. ScrollController? scrollController,
  50. ScrollPhysics? scrollPhysics,
  51. Iterable<String>? autofillHints,
  52. Clip clipBehavior = Clip.hardEdge,
  53. String? restorationId,
  54. bool scribbleEnabled = true,
  55. bool enableIMEPersonalizedLearning = true,
  56. EditableTextContextMenuBuilder? contextMenuBuilder = _defaultContextMenuBuilder,
  57. SpellCheckConfiguration? spellCheckConfiguration,
  58. TextMagnifierConfiguration? magnifierConfiguration,
  59. CustomButton? customButton,
  60. CustomButtonDefaultAction? customButtonDefaultAction,
  61. VoidCallback? customButtonAction,
  62. Color? customButtonColor,
  63. Widget? customButtonView,
  64. IconData? customButtonIcon,
  65. double? customButtonIconSize,
  66. double? customButtonIconPadding,
  67. bool autoValidate = false,
  68. String? onValidate(
    1. String
    )?,
})

Implementation

const AdeptTextField({
  this.key,
  this.controller,
  this.focusNode,
  InputDecoration? decoration,
  this.keyboardType,
  this.textInputAction,
  TextCapitalization? textCapitalization,
  this.style,
  TextAlign? textAlign,
  this.textDirection,
  bool? autofocus,
  bool? obscureText,
  bool? autocorrect,
  int? maxLines,
  this.maxLength,
  this.maxLengthEnforcement,
  this.onChanged,
  bool? listenOnControllerChanged,
  this.onEditingComplete,
  this.onSubmitted,
  this.inputFormatters,
  this.enabled,
  double? cursorWidth,
  this.cursorRadius,
  this.cursorColor,
  this.keyboardAppearance,
  EdgeInsets? scrollPadding,
  bool? enableInteractiveSelection,
  this.selectionControls,
  this.onTap,
  this.onTapOutside,
  this.strutStyle,
  this.textAlignVertical,
  bool? readOnly,
  this.showCursor,
  String? obscuringCharacter,
  this.smartDashesType,
  this.smartQuotesType,
  bool? enableSuggestions,
  this.minLines,
  bool? expands,
  this.onAppPrivateCommand,
  this.cursorHeight,
  ui.BoxHeightStyle? selectionHeightStyle,
  ui.BoxWidthStyle? selectionWidthStyle,
  DragStartBehavior? dragStartBehavior,
  this.mouseCursor,
  this.buildCounter,
  this.scrollController,
  this.scrollPhysics,
  this.autofillHints,
  this.clipBehavior = Clip.hardEdge,
  this.restorationId,
  this.scribbleEnabled = true,
  this.enableIMEPersonalizedLearning = true,
  this.contextMenuBuilder = _defaultContextMenuBuilder,
  this.spellCheckConfiguration,
  this.magnifierConfiguration,
  CustomButton? customButton,
  CustomButtonDefaultAction? customButtonDefaultAction,
  this.customButtonAction,
  this.customButtonColor,
  this.customButtonView,
  this.customButtonIcon,
  double? customButtonIconSize,
  double? customButtonIconPadding,
  this.autoValidate = false,
  this.onValidate,
})  : decoration = decoration ?? const InputDecoration(),
      textCapitalization = textCapitalization ?? TextCapitalization.none,
      textAlign = textAlign ?? TextAlign.start,
      autofocus = autofocus ?? false,
      obscureText = obscureText ?? false,
      autocorrect = autocorrect ?? true,
      maxLines = maxLines ?? 1,
      listenOnControllerChanged = listenOnControllerChanged ?? true,
      cursorWidth = cursorWidth ?? 2.0,
      scrollPadding = scrollPadding ?? const EdgeInsets.all(20.0),
      enableInteractiveSelection = enableInteractiveSelection ?? true,
      readOnly = readOnly ?? false,
      obscuringCharacter = obscuringCharacter ?? '•',
      enableSuggestions = enableSuggestions ?? true,
      expands = expands ?? false,
      selectionHeightStyle = selectionHeightStyle ?? ui.BoxHeightStyle.tight,
      selectionWidthStyle = selectionWidthStyle ?? ui.BoxWidthStyle.tight,
      dragStartBehavior = dragStartBehavior ?? DragStartBehavior.start,
      customButton = customButton ?? CustomButton.NONE,
      customButtonDefaultAction =
          customButtonDefaultAction ?? CustomButtonDefaultAction.NONE,
      customButtonIconSize = customButtonIconSize ?? 24,
      customButtonIconPadding = customButtonIconPadding ?? 8;