ComicTextField class
A field on the control surface. onPaper uses the paper surface for a reply by day; by night every field is on the night card. Its outline remains on the same corner scale. maxLines above one makes a note box; trailing holds a send button or a unit.
ComicTextField(hint: 'Your name', onChanged: (text) {})
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- ComicTextField
Constructors
-
ComicTextField({Key? key, ComicStyle? style, TextEditingController? controller, String? initialValue, String? hint, ValueChanged<
String> ? onChanged, ValueChanged<String> ? onSubmitted, Widget? trailing, Widget? leading, int maxLines = 1, int? minLines, String? prefix, TextInputType? keyboardType, TextDirection? textDirection, bool onPaper = false, bool obscureText = false, String? label, String? helper, String? error, bool enabled = true, FocusNode? focusNode, bool autofocus = false, TextInputAction? textInputAction, Iterable<String> ? autofillHints, List<TextInputFormatter> ? inputFormatters, bool password = false, (String, String)? revealLabels, VoidCallback? onEditingComplete, Widget decorate(Widget input)?, Widget failureLine(Widget input)?, bool nameOnly = false, bool showLabel = true}) -
Creates a ComicTextField.
const
Properties
-
autofillHints
→ Iterable<
String> ? -
Hints passed to the platform autofill service.
final
- autofocus → bool
-
Whether the field requests initial focus.
final
- controller → TextEditingController?
-
The caller-owned editing controller.
final
- decorate → Widget Function(Widget input)?
-
Decorates the editable input with application semantics.
final
- enabled → bool
-
Whether input and selection are available.
final
- error → String?
-
The error message and invalid semantics, when present.
final
- failureLine → Widget Function(Widget input)?
-
Decorates the visible error line, for example as a live region.
final
- focusNode → FocusNode?
-
An optional focus node owned by the caller.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- helper → String?
-
Supporting text under the field; an error takes its place.
final
- hint → String?
-
initialValue: initial text when no editing controller is supplied. hint: placeholder text shown when the field is empty. prefix: text displayed before the editable value.
final
- initialValue → String?
-
initialValue: initial text when no editing controller is supplied. hint: placeholder text shown when the field is empty. prefix: text displayed before the editable value.
final
-
inputFormatters
→ List<
TextInputFormatter> ? -
Input formatters applied by Flutter's text editor.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardType → TextInputType?
-
The keyboard requested for editing.
final
- label → String?
-
The label stays above the frame, even while focused.
final
- leading → Widget?
-
trailing: content after the main words. leading: content before the main words.
final
- maxLines → int
-
The most lines the field shows before it scrolls; above one it is a note box.
final
- minLines → int?
-
The fewest lines the field shows; null shows maxLines from the start.
final
- nameOnly → bool
-
Keeps the placeholder out of the editor's accessible name.
final
- obscureText → bool
-
onPaper: uses the paper surface for a reply, by day. obscureText: hides entered text.
final
-
onChanged
→ ValueChanged<
String> ? -
onChanged: reports a new value; null disables changes. onSubmitted: reports text submitted from the keyboard.
final
- onEditingComplete → VoidCallback?
-
Replaces the editor's default focus traversal after submission.
final
- onPaper → bool
-
onPaper: uses the paper surface for a reply, by day. obscureText: hides entered text.
final
-
onSubmitted
→ ValueChanged<
String> ? -
onChanged: reports a new value; null disables changes. onSubmitted: reports text submitted from the keyboard.
final
- password → bool
-
A password editor with a reveal control, initially hidden.
final
- prefix → String?
-
initialValue: initial text when no editing controller is supplied. hint: placeholder text shown when the field is empty. prefix: text displayed before the editable value.
final
- revealLabels → (String, String)?
-
Spoken reveal and conceal labels, in that order.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showLabel → bool
-
False to retain the spoken label without drawing a separate line.
final
- style → ComicStyle?
-
Per-state field frame, text and metrics.
final
- textDirection → TextDirection?
-
The direction of the entered text, as
TextField.textDirection; null follows the ambient Directionality. A number or code in groups ("0042 1187") holds TextDirection.ltr in a right-to-left app, or its groups swap.final - textInputAction → TextInputAction?
-
The action shown on the keyboard.
final
- trailing → Widget?
-
trailing: content after the main words. leading: content before the main words.
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.
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