ComicInputGroup class

A text field with optional leading and trailing widgets in a shared frame. The frame highlights when a child has focus. Tapping the frame or a noninteractive accessory focuses the text field.

ComicInputGroup(label: 'Weight', leading: const [Icon(ComicGlyphs.search)], trailing: const [Text('kg')], keyboardType: TextInputType.number)
Inheritance

Constructors

ComicInputGroup({Key? key, TextEditingController? controller, FocusNode? focusNode, String? label, String? hint, String? helper, String? error, bool enabled = true, ValueChanged<String>? onChanged, ValueChanged<String>? onSubmitted, TextInputType? keyboardType, List<TextInputFormatter>? inputFormatters, List<Widget> leading = const [], List<Widget> trailing = const [], bool autofocus = false})
Creates a ComicInputGroup.
const

Properties

autofocus → bool
Whether the part asks for the focus when it first appears.
final
controller → TextEditingController?
The caller-owned text.
final
enabled → bool
Whether it takes input.
final
error → String?
label: its name, above the frame. hint: the placeholder. helper: the help under it. error: what is wrong, in the help's place.
final
focusNode → FocusNode?
The caller-owned focus.
final
hashCode → int
The hash code for this object.
no setterinherited
helper → String?
label: its name, above the frame. hint: the placeholder. helper: the help under it. error: what is wrong, in the help's place.
final
hint → String?
label: its name, above the frame. hint: the placeholder. helper: the help under it. error: what is wrong, in the help's place.
final
inputFormatters → List<TextInputFormatter>?
Formatters on the text.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType → TextInputType?
The keyboard asked for.
final
label → String?
label: its name, above the frame. hint: the placeholder. helper: the help under it. error: what is wrong, in the help's place.
final
leading → List<Widget>
Add-ons before the field and after it, in reading order: a glyph, a unit's words, a button.
final
onChanged → ValueChanged<String>?
onChanged: each edit. onSubmitted: the keyboard's done.
final
onSubmitted → ValueChanged<String>?
onChanged: each edit. onSubmitted: the keyboard's done.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
trailing → List<Widget>
Add-ons before the field and after it, in reading order: a glyph, a unit's words, a button.
final

Methods

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