ClueSquareTextField class

A square text field widget for CLUe UI components.

Inheritance

Constructors

ClueSquareTextField.new({Key? key, double width = 250, bool autofocus = false, String? initialValue, TextEditingController? controller, void onChanged(String value)?, void onEditingComplete()?, String? hintText, String? errorText, int errorMaxLines = 1, Widget? suffixIcon, List<TextInputFormatter>? inputFormatters, bool obscureText = false, int maxLength = 30, bool enabled = true, bool showCounterText = false, bool useErrorText = false})
Creates a ClueSquareTextField.
const

Properties

autofocus bool
Determines if the text field should autofocus.
final
controller TextEditingController?
The controller for the text field.
final
enabled bool
Determines if the text field is enabled.
final
errorMaxLines int
The maximum number of lines for the error text.
final
errorText String?
The error text displayed below the text field.
final
hashCode int
The hash code for this object.
no setterinherited
hintText String?
The hint text displayed in the text field.
final
initialValue String?
The initial value of the text field.
final
inputFormatters List<TextInputFormatter>?
The input formatters for the text field.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxLength int
The maximum length of the text.
final
obscureText bool
Determines if the text should be obscured.
final
onChanged → void Function(String value)?
The callback function when the text changes.
final
onEditingComplete → void Function()?
The callback function when editing is complete.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showCounterText bool
Determines if the counter text should be displayed.
final
suffixIcon Widget?
The icon displayed at the end of the text field.
final
useErrorText bool
Determines if the error text should be used.
final
width double
The width of the text field.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<ClueSquareTextField>
Creates the mutable state for this widget at a given location in the tree.
override
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