DievasTextArea class

A multiline text input area.

Shares the same token architecture as DievasTextInput. Height is driven by minLines / maxLines rather than a fixed size enum — always uses the md content padding and typography variant.

Moon reference: Textarea

DievasTextArea(
  controller: _ctrl,
  label: 'Bio',
  hint: 'Tell us about yourself...',
  minLines: 3,
  maxLines: 6,
)
DievasTextArea(controller: _ctrl, errorText: 'Required', maxLines: 4)
Inheritance

Constructors

DievasTextArea({Key? key, TextEditingController? controller, FocusNode? focusNode, String? label, String? hint, String? helperText, String? errorText, String? warningText, int minLines = 3, int? maxLines = 6, bool enabled = true, TextInputType keyboardType = TextInputType.multiline, TextInputAction textInputAction = TextInputAction.newline, List<TextInputFormatter>? inputFormatters, ValueChanged<String>? onChanged, ValueChanged<String>? onSubmitted, VoidCallback? onEditingComplete, bool autofocus = false, int? maxLength, bool autocorrect = true})
const

Properties

autocorrect → bool
final
autofocus → bool
final
controller → TextEditingController?
final
enabled → bool
final
errorText → String?
Error message. Overrides helperText and switches the border to error colour.
final
focusNode → FocusNode?
final
hashCode → int
The hash code for this object.
no setterinherited
helperText → String?
Helper text shown below the input when there is no error.
final
hint → String?
Placeholder text shown when the field is empty.
final
inputFormatters → List<TextInputFormatter>?
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType → TextInputType
final
label → String?
Floating label rendered above the input container.
final
maxLength → int?
final
maxLines → int?
Maximum lines before the field scrolls. Defaults to 6.
final
minLines → int
Minimum visible lines. Defaults to 3.
final
onChanged → ValueChanged<String>?
final
onEditingComplete → VoidCallback?
final
onSubmitted → ValueChanged<String>?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
textInputAction → TextInputAction
final
warningText → String?
Non-blocking validation feedback. Overrides helperText and switches the border to the warning colour. Takes precedence over the normal state but yields to errorText when both are set.
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.
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