GlossTextField class

A Gloss text field: a well pressed into the page, rounded 12, the words on its floor. Focus catches the light on its inner bevel. An error rims it in ruby and says itself under it.

The caller owns a controller or focusNode it passes; without one the field makes its own and disposes it.

GlossTextField(label: 'Name', hint: 'Your name', onChanged: (value) {})
Inheritance

Constructors

GlossTextField({Key? key, TextEditingController? controller, FocusNode? focusNode, String? label, String? hint, String? helper, String? error, Widget? prefixIcon, Widget? suffix, bool obscureText = false, TextInputType? keyboardType, TextInputAction? textInputAction, TextCapitalization textCapitalization = TextCapitalization.none, Iterable<String>? autofillHints, List<TextInputFormatter>? inputFormatters, ValueChanged<String>? onChanged, ValueChanged<String>? onSubmitted, bool enabled = true, bool readOnly = false, bool autofocus = false, int? maxLines = 1, int? minLines, String? semanticLabel, GlossStyle? style})
A field, label above it.
const

Properties

autofillHints → Iterable<String>?
What autofill may put here.
final
autofocus → bool
Whether it takes focus when it first appears, as Focus.autofocus does: one part on a route asks for it.
final
controller → TextEditingController?
The words; the field makes its own when null.
final
enabled → bool
Whether the field takes words.
final
error → String?
What is wrong with the words, under the field in ruby.
final
focusNode → FocusNode?
A focus node given is the caller's, who disposes it: the part never does. Given none, the part makes its own and disposes it.
final
hashCode → int
The hash code for this object.
no setterinherited
helper → String?
Help under the field.
final
hint → String?
A format or an example in the empty field; never the label.
final
inputFormatters → List<TextInputFormatter>?
Rules on what may be typed.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType → TextInputType?
The keyboard to show.
final
label → String?
The label above the field.
final
maxLines → int?
The most lines it grows to; 1 for one line, null for any.
final
minLines → int?
The fewest lines it shows.
final
obscureText → bool
Whether the words are hidden (a password).
final
onChanged → ValueChanged<String>?
Called as the words change.
final
onSubmitted → ValueChanged<String>?
Called when the keyboard's action key is pressed.
final
prefixIcon → Widget?
A glyph at the field's start (a search's lens).
final
readOnly → bool
Whether the words can be read and selected but not changed.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel → String?
What a screen reader calls the field, when not its label.
final
style → GlossStyle?
This field's own style, over GlossThemeData.textFieldStyle.
final
suffix → Widget?
Something at the field's end: a unit, a key.
final
textCapitalization → TextCapitalization
How the words are capitalised as they are typed.
final
textInputAction → TextInputAction?
The keyboard's action key.
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<GlossTextField>
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.
override
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