EWTextField constructor

const EWTextField({
  1. bool obscure = false,
  2. AutovalidateMode autoValidateMode = AutovalidateMode.onUserInteraction,
  3. int? errorMaxLines = 1,
  4. TextEditingController? controller,
  5. TextInputType? keyboardType,
  6. TextStyle? textStyle,
  7. String? validator(
    1. String?
    )?,
  8. String? hintText,
  9. String? labelText,
  10. Widget? prefixIcon,
  11. String? errorText,
  12. Color? cursorColor,
  13. Widget? suffixIcon,
  14. dynamic onChanged(
    1. String
    )?,
  15. GestureTapCallback? onTap,
  16. bool readOnly = false,
  17. FocusNode? focusNode,
  18. bool autocorrect = false,
  19. Iterable<String>? autofillHints,
  20. bool autofocus = false,
  21. InputCounterWidgetBuilder? buildCounter,
  22. bool canRequestFocus = true,
  23. Clip clipBehavior = Clip.hardEdge,
  24. ContentInsertionConfiguration? contentInsertionConfiguration,
  25. double? cursorHeight,
  26. bool cursorOpacityAnimates = false,
  27. Radius? cursorRadius,
  28. double? cursorWidth,
  29. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  30. bool enabled = true,
  31. bool enableIMEPersonalizedLearning = true,
  32. bool enableSuggestions = true,
  33. bool enableInteractiveSelection = false,
  34. String? initialValue,
  35. Brightness? keyboardAppearance,
  36. bool expands = false,
  37. List<TextInputFormatter>? inputFormatters,
  38. TextMagnifierConfiguration? magnifierConfiguration,
  39. int? maxLength,
  40. MaxLengthEnforcement? maxLengthEnforcement,
  41. int? maxLines = 1,
  42. int? minLines,
  43. MouseCursor? mouseCursor,
  44. AppPrivateCommandCallback? onAppPrivateCommand,
  45. VoidCallback? onEditingComplete,
  46. ValueChanged<String>? onFieldSubmitted,
  47. dynamic onSaved(
    1. String?
    )?,
  48. TapRegionCallback? onTapOutside,
  49. String? restorationId,
  50. bool scribbleEnabled = true,
  51. ScrollController? scrollController,
  52. ScrollPhysics? scrollPhysics,
  53. StrutStyle? strutStyle,
  54. TextAlign textAlign = TextAlign.start,
  55. TextAlignVertical? textAlignVertical,
  56. TextDirection? textDirection,
  57. TextCapitalization textCapitalization = TextCapitalization.none,
  58. String? helperText,
  59. TextStyle? labelStyle,
  60. EdgeInsetsGeometry? contentPadding,
  61. Key? key,
})

Implementation

const EWTextField({
  this.obscure = false,
  this.autoValidateMode = AutovalidateMode.onUserInteraction,
  this.errorMaxLines = 1,
  this.controller,
  this.keyboardType,
  this.textStyle,
  this.validator,
  this.hintText,
  this.labelText,
  this.prefixIcon,
  this.errorText,
  this.cursorColor,
  this.suffixIcon,
  this.onChanged,
  this.onTap,
  this.readOnly = false,
  this.focusNode,
  this.autocorrect = false,
  this.autofillHints,
  this.autofocus = false,
  this.buildCounter,
  this.canRequestFocus = true,
  this.clipBehavior = Clip.hardEdge,
  this.contentInsertionConfiguration,
  this.cursorHeight,
  this.cursorOpacityAnimates = false,
  this.cursorRadius,
  this.cursorWidth,
  this.dragStartBehavior = DragStartBehavior.start,
  this.enabled = true,
  this.enableIMEPersonalizedLearning = true,
  this.enableSuggestions = true,
  this.enableInteractiveSelection = false,
  this.initialValue,
  this.keyboardAppearance,
  this.expands = false,
  this.inputFormatters,
  this.magnifierConfiguration,
  this.maxLength,
  this.maxLengthEnforcement,
  this.maxLines = 1,
  this.minLines,
  this.mouseCursor,
  this.onAppPrivateCommand,
  this.onEditingComplete,
  this.onFieldSubmitted,
  this.onSaved,
  this.onTapOutside,
  this.restorationId,
  this.scribbleEnabled = true,
  this.scrollController,
  this.scrollPhysics,
  this.strutStyle,
  this.textAlign = TextAlign.start,
  this.textAlignVertical,
  this.textDirection,
  this.textCapitalization = TextCapitalization.none,
  this.helperText,
  this.labelStyle,
  this.contentPadding,
  super.key,
});