LedgerTextInput class

A text input in Ledger's type, its placeholder shown while it is empty, one line unless maxLines says it may grow. Plumbing of the fields and the composer; pages never place one.

Inheritance

Constructors

LedgerTextInput({required TextStyle style, required TextStyle placeholderStyle, TextEditingController? controller, String? placeholder, ValueChanged<String>? onChanged, ValueChanged<String>? onSubmitted, VoidCallback? onEditingComplete, FocusNode? focusNode, bool autofocus = false, TextInputType? keyboardType, TextInputAction? textInputAction, int maxLines = 1, Key? key})
A text input set in style.
const

Properties

autofocus → bool
Whether the input takes the focus when it first stands.
final
controller → TextEditingController?
The words typed; the input makes its own when none is given, and never disposes one it was given.
final
focusNode → FocusNode?
The input's focus; never disposed when given.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType → TextInputType?
The keyboard the input asks for.
final
maxLines → int
How many lines it grows to; 1 keeps it to one.
final
onChanged → ValueChanged<String>?
Called with the words as they are typed.
final
onEditingComplete → VoidCallback?
Called on the keyboard's act key in place of the input giving up the focus. An input that keeps the focus takes the act here, never in onSubmitted too: told of a submit while it keeps the focus, it restarts its text input, and a browser's then takes no typing.
final
onSubmitted → ValueChanged<String>?
Called with the words when the keyboard submits them; the input gives up the focus.
final
placeholder → String?
What stands while the input is empty.
final
placeholderStyle → TextStyle
The placeholder's style.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
style → TextStyle
The words' style.
final
textInputAction → TextInputAction?
The keyboard's act key.
final

Methods

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