SundayTextField constructor
const
SundayTextField({
- Key? key,
- required Style style,
- TextEditingController? controller,
- ValueChanged<
String> ? onChanged, - TextInputType? keyboardType,
- bool obscureText = false,
- String? placeholder,
- dynamic decoration,
- bool enabled = true,
- bool autofocus = false,
- int? maxLines = 1,
- int? minLines,
- int? maxLength,
- TextAlign textAlign = TextAlign.start,
- TextStyle? textStyle,
- EdgeInsetsGeometry? padding,
- ValueChanged<
String> ? onSubmitted, - ValueChanged<
bool> ? onFocusChange, - Color? cursorColor,
- bool showClearButton = false,
- bool? autocorrect,
- Iterable<
String> ? autofillHints, - OverlayVisibilityMode? clearButtonMode,
- String? clearButtonSemanticLabel,
- Clip? clipBehavior,
- ContentInsertionConfiguration? contentInsertionConfiguration,
- EditableTextContextMenuBuilder? contextMenuBuilder,
- double? cursorHeight,
- bool? cursorOpacityAnimates,
- Radius? cursorRadius,
- double? cursorWidth,
- DragStartBehavior? dragStartBehavior,
- bool? enableIMEPersonalizedLearning,
- bool? enableInteractiveSelection,
- bool? enableSuggestions,
- bool? expands,
- FocusNode? focusNode,
- Object? groupId,
- List<
TextInputFormatter> ? inputFormatters, - Brightness? keyboardAppearance,
- 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,
});