SundayTextField constructor

const SundayTextField({
  1. Key? key,
  2. required Style style,
  3. TextEditingController? controller,
  4. ValueChanged<String>? onChanged,
  5. TextInputType? keyboardType,
  6. bool obscureText = false,
  7. String? placeholder,
  8. dynamic decoration,
  9. bool enabled = true,
  10. bool autofocus = false,
  11. int? maxLines = 1,
  12. int? minLines,
  13. int? maxLength,
  14. TextAlign textAlign = TextAlign.start,
  15. TextStyle? textStyle,
  16. EdgeInsetsGeometry? padding,
  17. ValueChanged<String>? onSubmitted,
  18. ValueChanged<bool>? onFocusChange,
  19. Color? cursorColor,
  20. bool showClearButton = false,
  21. bool? autocorrect,
  22. Iterable<String>? autofillHints,
  23. OverlayVisibilityMode? clearButtonMode,
  24. String? clearButtonSemanticLabel,
  25. Clip? clipBehavior,
  26. ContentInsertionConfiguration? contentInsertionConfiguration,
  27. EditableTextContextMenuBuilder? contextMenuBuilder,
  28. double? cursorHeight,
  29. bool? cursorOpacityAnimates,
  30. Radius? cursorRadius,
  31. double? cursorWidth,
  32. DragStartBehavior? dragStartBehavior,
  33. bool? enableIMEPersonalizedLearning,
  34. bool? enableInteractiveSelection,
  35. bool? enableSuggestions,
  36. bool? expands,
  37. FocusNode? focusNode,
  38. Object? groupId,
  39. List<TextInputFormatter>? inputFormatters,
  40. Brightness? keyboardAppearance,
  41. TextMagnifierConfiguration? magnifierConfiguration,
})

Creates a SundayTextField.

The style parameter is required and determines which style of text field to use.

Implementation

const SundayTextField({
  super.key,
  required this.style,
  this.controller,
  this.onChanged,
  this.keyboardType,
  this.obscureText = false,
  this.placeholder,
  this.decoration,
  this.enabled = true,
  this.autofocus = false,
  this.maxLines = 1,
  this.minLines,
  this.maxLength,
  this.textAlign = TextAlign.start,
  this.textStyle,
  this.padding,
  this.onSubmitted,
  this.onFocusChange,
  this.cursorColor,
  this.showClearButton = false,
  this.autocorrect,
  this.autofillHints,
  this.clearButtonMode,
  this.clearButtonSemanticLabel,
  this.clipBehavior,
  this.contentInsertionConfiguration,
  this.contextMenuBuilder,
  this.cursorHeight,
  this.cursorOpacityAnimates,
  this.cursorRadius,
  this.cursorWidth,
  this.dragStartBehavior,
  this.enableIMEPersonalizedLearning,
  this.enableInteractiveSelection,
  this.enableSuggestions,
  this.expands,
  this.focusNode,
  this.groupId,
  this.inputFormatters,
  this.keyboardAppearance,
  this.magnifierConfiguration,
});