SundayTextField class
A customizable text field that adapts to different UI styles (Material, Cupertino, etc.).
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- SundayTextField
Constructors
-
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.
const
Properties
- autocorrect → bool?
-
Whether to enable autocorrection.
final
-
autofillHints
→ Iterable<
String> ? -
A list of strings that helps the autofill service identify the type of this text input.
final
- autofocus → bool
-
Whether the text field should automatically get focus.
final
- clearButtonMode → OverlayVisibilityMode?
-
Show an iOS-style clear button to clear the current text entry.
final
- clearButtonSemanticLabel → String?
-
The semantic label for the clear button used by screen readers.
final
- clipBehavior → Clip?
-
The content will be clipped (or not) according to this option.
final
- contentInsertionConfiguration → ContentInsertionConfiguration?
-
Configuration of handler for media content inserted via the system input method.
final
- contextMenuBuilder → EditableTextContextMenuBuilder?
-
Builds the text selection toolbar when requested by the user.
final
- controller → TextEditingController?
-
The controller for this text field.
final
- cursorColor → Color?
-
The color of the cursor.
final
- cursorHeight → double?
-
How tall the cursor will be.
final
- cursorOpacityAnimates → bool?
-
Whether the cursor will animate from fully transparent to fully opaque during each cursor blink.
final
- cursorRadius → Radius?
-
How rounded the corners of the cursor should be.
final
- cursorWidth → double?
-
How thick the cursor will be.
final
- decoration → dynamic
-
Additional decoration to add to the text field.
final
- dragStartBehavior → DragStartBehavior?
-
Determines the way that drag start behavior is handled.
final
- enabled → bool
-
Whether the text field is enabled.
final
- enableIMEPersonalizedLearning → bool?
-
Whether to enable that the IME update personalized data such as typing history and user dictionary data.
final
- enableInteractiveSelection → bool?
-
Whether to enable user interface affordances for changing the text selection.
final
- enableSuggestions → bool?
-
Whether to show input suggestions as the user types.
final
- expands → bool?
-
Whether this widget's height will be sized to fill its parent.
final
- focusNode → FocusNode?
-
An optional focus node to use as the focus node for this widget.
final
- groupId → Object?
-
The group identifier for the TextFieldTapRegion of this text field.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
inputFormatters
→ List<
TextInputFormatter> ? -
Optional input validation and formatting overrides.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardAppearance → Brightness?
-
The appearance of the keyboard.
final
- keyboardType → TextInputType?
-
The type of keyboard to use for editing the text.
final
- magnifierConfiguration → TextMagnifierConfiguration?
-
Configuration for the text field magnifier.
final
- maxLength → int?
-
The maximum length of the text field input.
final
- maxLines → int?
-
The maximum number of lines for the text field.
final
- minLines → int?
-
The minimum number of lines for the text field.
final
- obscureText → bool
-
Whether to hide the text being edited (e.g., for passwords).
final
-
onChanged
→ ValueChanged<
String> ? -
Callback that is called when the text field's value changes.
final
-
onFocusChange
→ ValueChanged<
bool> ? -
Called when the text field gains or loses focus.
final
-
onSubmitted
→ ValueChanged<
String> ? -
Called when the user submits the text field.
final
- padding → EdgeInsetsGeometry?
-
Padding around the text field content.
final
- placeholder → String?
-
The text or hint to display when the text field is empty.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showClearButton → bool
-
Whether the text field should show a clear button when not empty.
final
- style → Style
-
The style to use for this text field (Material, Cupertino, etc.).
final
- textAlign → TextAlign
-
The text alignment within the text field.
final
- textStyle → TextStyle?
-
The style to apply to the text being edited.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited