ZeroTextField constructor

const ZeroTextField({
  1. Key? key,
  2. String? hintText,
  3. String? helperText,
  4. String? labelText,
  5. String? errorText,
  6. TextStyle? labelStyle,
  7. TextStyle? errorStyle,
  8. TextStyle? helperStyle,
  9. InputDecorationType? inputDecorationType,
  10. ZeroTextfieldSize textfieldSize = ZeroTextfieldSize.small,
  11. Widget? prefixIcon,
  12. Widget? suffixIcon,
  13. Widget? prefix,
  14. Widget? suffix,
  15. InputDecoration? decoration,
  16. AutovalidateMode? autovalidateMode = AutovalidateMode.onUserInteraction,
  17. bool? enabled,
  18. dynamic onChanged(
    1. String
    )?,
  19. dynamic onEditingComplete()?,
  20. TextEditingController? controller,
  21. FocusNode? focusNode,
  22. TextInputType? keyboardType,
  23. String? validator(
    1. String?
    )?,
  24. TextInputAction? textInputAction = TextInputAction.next,
  25. int? minLines,
  26. int? maxLines,
  27. TextAlignVertical? textAlignVertical,
  28. bool? autofocus = false,
  29. void onFieldSubmitted(
    1. String text
    )?,
  30. void onSaved(
    1. String? text
    )?,
  31. dynamic onTap()?,
  32. dynamic onTapOutside(
    1. PointerDownEvent event
    )?,
  33. OnFocusChanged? onFocusChanged,
  34. bool autocorrect = false,
  35. Iterable<String>? autofillHints,
  36. TextStyle? style,
  37. String? initialValue,
  38. bool expands = false,
  39. List<TextInputFormatter>? inputFormatters,
  40. TextCapitalization textCapitalization = TextCapitalization.none,
  41. Brightness? keyboardAppearance,
  42. bool obscureText = false,
  43. bool readOnly = false,
  44. Color? cursorColor,
  45. double? cursorHeight,
  46. double cursorWidth = 2.0,
  47. Radius? cursorRadius,
  48. bool enableSuggestion = false,
  49. BuildCounter? buildCounter,
  50. ContextMenuBuilder? contextMenuBuilder,
  51. int? maxLength,
  52. MouseCursor? mouseCursor,
  53. MaxLengthEnforcement? maxLengthEnforcement,
  54. String obscuringCharacter = '•',
  55. ScrollController? scrollController,
  56. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  57. bool showCursor = true,
  58. ScrollPhysics? scrollPhysics,
  59. StrutStyle? strutStyle,
  60. TextAlign textAlign = TextAlign.start,
  61. TextDirection? textDirection,
  62. TextSelectionControls? selectionControls,
  63. bool enableIMEPersonalizedLearning = true,
  64. bool? enableInteractiveSelection,
})

Implementation

const ZeroTextField({
  super.key,
  this.hintText,
  this.helperText,
  this.labelText,
  this.errorText,
  this.labelStyle,
  this.errorStyle,
  this.helperStyle,
  this.inputDecorationType,
  this.textfieldSize = ZeroTextfieldSize.small,
  this.prefixIcon,
  this.suffixIcon,
  this.prefix,
  this.suffix,
  this.decoration,
  this.autovalidateMode = AutovalidateMode.onUserInteraction,
  this.enabled,
  this.onChanged,
  this.onEditingComplete,
  this.controller,
  this.focusNode,
  this.keyboardType,
  this.validator,
  this.textInputAction = TextInputAction.next,
  this.minLines,
  this.maxLines,
  this.textAlignVertical,
  this.autofocus = false,
  this.onFieldSubmitted,
  this.onSaved,
  this.onTap,
  this.onTapOutside,
  this.onFocusChanged,
  this.autocorrect = false,
  this.autofillHints,
  this.style,
  this.initialValue,
  this.expands = false,
  this.inputFormatters,
  this.textCapitalization = TextCapitalization.none,
  this.keyboardAppearance,
  this.obscureText = false,
  this.readOnly = false,
  this.cursorColor,
  this.cursorHeight,
  this.cursorWidth = 2.0,
  this.cursorRadius,
  this.enableSuggestion = false,
  this.buildCounter,
  this.contextMenuBuilder,
  this.maxLength,
  this.mouseCursor,
  this.maxLengthEnforcement,
  this.obscuringCharacter = '•',
  this.scrollController,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.showCursor = true,
  this.scrollPhysics,
  this.strutStyle,
  this.textAlign = TextAlign.start,
  this.textDirection,
  this.selectionControls,
  this.enableIMEPersonalizedLearning = true,
  this.enableInteractiveSelection,
});