BasfTextField constructor

const BasfTextField({
  1. required TextEditingController? controller,
  2. Key? key,
  3. GlobalKey<FormState>? formKey,
  4. String? initialValue,
  5. FocusNode? focusNode,
  6. InputDecoration? decoration,
  7. TextInputType? keyboardType,
  8. TextCapitalization textCapitalization = TextCapitalization.none,
  9. TextInputAction? textInputAction,
  10. TextStyle? style,
  11. StrutStyle? strutStyle,
  12. TextDirection? textDirection,
  13. TextAlign textAlign = TextAlign.start,
  14. TextAlignVertical? textAlignVertical,
  15. bool autofocus = false,
  16. bool readOnly = false,
  17. EditableTextContextMenuBuilder? contextMenuBuilder,
  18. MouseCursor? mouseCursor,
  19. TapRegionCallback? onTapOutside,
  20. bool? showCursor,
  21. String obscuringCharacter = '•',
  22. bool obscureText = false,
  23. bool autocorrect = true,
  24. SmartDashesType? smartDashesType,
  25. SmartQuotesType? smartQuotesType,
  26. bool enableSuggestions = true,
  27. MaxLengthEnforcement? maxLengthEnforcement,
  28. int? maxLines = 1,
  29. int? minLines,
  30. bool expands = false,
  31. int? maxLength,
  32. ValueChanged<String>? onChanged,
  33. GestureTapCallback? onTap,
  34. VoidCallback? onEditingComplete,
  35. ValueChanged<String>? onFieldSubmitted,
  36. FormFieldSetter<String>? onSaved,
  37. FormFieldValidator<String>? validator,
  38. List<TextInputFormatter>? inputFormatters,
  39. bool? enabled,
  40. double cursorWidth = 2.0,
  41. double? cursorHeight,
  42. Radius? cursorRadius,
  43. Color? cursorColor,
  44. Brightness? keyboardAppearance,
  45. EdgeInsets scrollPadding = const EdgeInsets.all(30),
  46. bool enableInteractiveSelection = true,
  47. TextSelectionControls? selectionControls,
  48. InputCounterWidgetBuilder? buildCounter,
  49. ScrollPhysics? scrollPhysics,
  50. Iterable<String>? autofillHints,
  51. AutovalidateMode? autovalidateMode,
  52. ScrollController? scrollController,
  53. String? restorationId,
  54. bool enableIMEPersonalizedLearning = true,
  55. bool greyWhenDisabled = true,
  56. bool canRequestFocus = true,
  57. Clip clipBehavior = Clip.hardEdge,
  58. ContentInsertionConfiguration? contentInsertionConfiguration,
  59. bool? cursorOpacityAnimates,
  60. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  61. TextMagnifierConfiguration? magnifierConfiguration,
  62. AppPrivateCommandCallback? onAppPrivateCommand,
  63. ValueChanged<String>? onSubmitted,
  64. bool scribbleEnabled = true,
  65. BoxHeightStyle selectionHeightStyle = BoxHeightStyle.tight,
  66. BoxWidthStyle selectionWidthStyle = BoxWidthStyle.tight,
  67. SpellCheckConfiguration? spellCheckConfiguration,
  68. UndoHistoryController? undoController,
  69. Color? cursorErrorColor,
  70. bool onTapAlwaysCalled = false,
  71. WidgetStatesController? statesController,
})

A BASF-styled text field input

Implementation

const BasfTextField({
  required this.controller,
  super.key,
  this.formKey,
  this.initialValue,
  this.focusNode,
  this.decoration,
  this.keyboardType,
  this.textCapitalization = TextCapitalization.none,
  this.textInputAction,
  this.style,
  this.strutStyle,
  this.textDirection,
  this.textAlign = TextAlign.start,
  this.textAlignVertical,
  this.autofocus = false,
  this.readOnly = false,
  this.contextMenuBuilder,
  this.mouseCursor,
  this.onTapOutside,
  this.showCursor,
  this.obscuringCharacter = '•',
  this.obscureText = false,
  this.autocorrect = true,
  this.smartDashesType,
  this.smartQuotesType,
  this.enableSuggestions = true,
  this.maxLengthEnforcement,
  this.maxLines = 1,
  this.minLines,
  this.expands = false,
  this.maxLength,
  this.onChanged,
  this.onTap,
  this.onEditingComplete,
  this.onFieldSubmitted,
  this.onSaved,
  this.validator,
  this.inputFormatters,
  this.enabled,
  this.cursorWidth = 2.0,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorColor,
  this.keyboardAppearance,
  this.scrollPadding = const EdgeInsets.all(30),
  this.enableInteractiveSelection = true,
  this.selectionControls,
  this.buildCounter,
  this.scrollPhysics,
  this.autofillHints,
  this.autovalidateMode,
  this.scrollController,
  this.restorationId,
  this.enableIMEPersonalizedLearning = true,
  this.greyWhenDisabled = true,
  this.canRequestFocus = true,
  this.clipBehavior = Clip.hardEdge,
  this.contentInsertionConfiguration,
  this.cursorOpacityAnimates,
  this.dragStartBehavior = DragStartBehavior.start,
  this.magnifierConfiguration,
  this.onAppPrivateCommand,
  this.onSubmitted,
  this.scribbleEnabled = true,
  this.selectionHeightStyle = BoxHeightStyle.tight,
  this.selectionWidthStyle = BoxWidthStyle.tight,
  this.spellCheckConfiguration,
  this.undoController,
  this.cursorErrorColor,
  this.onTapAlwaysCalled = false,
  this.statesController,
});