CustomTextField constructor

const CustomTextField({
  1. Key? key,
  2. required TextEditingController controller,
  3. double? height,
  4. double? width,
  5. BoxConstraints? constraints,
  6. FormFieldValidator<String>? validator,
  7. ValueChanged<String>? onChanged,
  8. String? hintText,
  9. TextStyle? hintStyle,
  10. String? labelText,
  11. int? limit,
  12. EdgeInsets? margin,
  13. bool? obscureText,
  14. String? initialValue,
  15. FocusNode? focusNode,
  16. TextInputType? keyboardType,
  17. TextInputAction? textInputAction,
  18. TextStyle? style,
  19. StrutStyle? strutStyle,
  20. TextDirection? textDirection,
  21. TextAlignVertical? textAlignVertical,
  22. ToolbarOptions? toolbarOptions,
  23. bool? showCursor,
  24. SmartDashesType? smartDashesType,
  25. SmartQuotesType? smartQuotesType,
  26. MaxLengthEnforcement? maxLengthEnforcement,
  27. int? minLines,
  28. int? maxLength,
  29. GestureTapCallback? onTap,
  30. VoidCallback? onEditingComplete,
  31. ValueChanged<String>? onFieldSubmitted,
  32. FormFieldSetter<String>? onSaved,
  33. List<TextInputFormatter>? inputFormatters,
  34. bool? enabled,
  35. bool? autofocus,
  36. TextAlign? textAlign,
  37. bool? readOnly,
  38. String? obscuringCharacter,
  39. bool? autocorrect,
  40. Radius? cursorRadius,
  41. double? cursorHeight,
  42. int? maxLines,
  43. EdgeInsets? scrollPadding,
  44. bool? enableIMEPersonalizedLearning,
  45. Color? cursorColor,
  46. Brightness? keyboardAppearance,
  47. bool? enableInteractiveSelection,
  48. TextSelectionControls? selectionControls,
  49. InputCounterWidgetBuilder? buildCounter,
  50. ScrollPhysics? scrollPhysics,
  51. Iterable<String>? autofillHints,
  52. AutovalidateMode? autovalidateMode,
  53. ScrollController? scrollController,
  54. String? restorationId,
  55. Color? fillColor,
  56. bool? filled,
  57. MouseCursor? mouseCursor,
  58. EdgeInsetsGeometry? contentPadding,
  59. bool? isCollapsed,
  60. double? floatingLabelHeight,
  61. double? floatingLabelProgress,
  62. FloatingLabelAlignment? floatingLabelAlignment,
  63. InputBorder? border,
  64. bool? alignLabelWithHint,
  65. bool? isDense,
  66. VisualDensity? visualDensity,
  67. Widget? icon,
  68. Widget? input,
  69. Widget? label,
  70. Widget? hint,
  71. Widget? prefix,
  72. Widget? suffix,
  73. Widget? prefixIcon,
  74. Widget? suffixIcon,
  75. Widget? helperError,
  76. Widget? counter,
  77. Widget? container,
  78. bool? expands,
})

Implementation

const CustomTextField({
  Key? key,
  required this.controller,
  this.height,
  this.width,
  this.constraints,
  this.validator,
  this.onChanged,
  this.hintText,
  this.hintStyle,
  this.labelText,
  this.limit,
  this.margin,
  this.obscureText,
  this.initialValue,
  this.focusNode,
  this.keyboardType,
  this.textInputAction,
  this.style,
  this.strutStyle,
  this.textDirection,
  this.textAlignVertical,
  this.toolbarOptions,
  this.showCursor,
  this.smartDashesType,
  this.smartQuotesType,
  this.maxLengthEnforcement,
  this.minLines,
  this.maxLength,
  this.onTap,
  this.onEditingComplete,
  this.onFieldSubmitted,
  this.onSaved,
  this.inputFormatters,
  this.enabled,
  this.autofocus,
  this.textAlign,
  this.readOnly,
  this.obscuringCharacter,
  this.autocorrect,
  this.cursorRadius,
  this.cursorHeight,
  this.maxLines,
  this.scrollPadding,
  this.enableIMEPersonalizedLearning,
  this.cursorColor,
  this.keyboardAppearance,
  this.enableInteractiveSelection,
  this.selectionControls,
  this.buildCounter,
  this.scrollPhysics,
  this.autofillHints,
  this.autovalidateMode,
  this.scrollController,
  this.restorationId,
  this.fillColor,
  this.filled,
  this.mouseCursor,
  this.contentPadding,
  this.isCollapsed,
  this.floatingLabelHeight,
  this.floatingLabelProgress,
  this.floatingLabelAlignment,
  this.border,
  this.alignLabelWithHint,
  this.isDense,
  this.visualDensity,
  this.icon,
  this.input,
  this.label,
  this.hint,
  this.prefix,
  this.suffix,
  this.prefixIcon,
  this.suffixIcon,
  this.helperError,
  this.counter,
  this.container,
  this.expands,
}) : super(key: key);