MinimalTextArea class
A field for more than a line — a note, a description, a message: the MinimalTextField box, label, helper and error, resting at minLines and growing with what is typed up to maxLines, then scrolling. Enter starts a new line rather than submitting.
It reads components.textField and its fieldStyle exactly as the one-
line field does, so a form's boxes match: fill, edge or side, shape
(else shapes.small) and padding, focused and in error.
MinimalTextArea(label: 'Notes', hint: 'Anything the team should know', controller: notes)
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- MinimalTextArea
Constructors
-
MinimalTextArea({Key? key, String? label, String? hint, String? helper, String? error, TextEditingController? controller, ValueChanged<
String> ? onChanged, int minLines = 3, int maxLines = 8, bool enabled = true, bool readOnly = false, FocusNode? focusNode, MinimalStyle? fieldStyle, bool autofocus = false}) -
A text field of several lines.
const
Properties
- autofocus → bool
-
Whether it takes keyboard focus when it first appears.
final
- controller → TextEditingController?
-
The text; null keeps its own.
final
- enabled → bool
-
Whether it takes input.
final
- error → String?
-
The message under the box; also turns its rule to the destructive ink.
final
- fieldStyle → MinimalStyle?
-
This box's style, over
components.textField.final - focusNode → FocusNode?
-
Its focus; null keeps its own.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- helper → String?
-
A quiet line under the box, when there is no error.
final
- hint → String?
-
What an empty field says.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → String?
-
What it holds, over the box.
final
- maxLines → int
-
The lines it grows to before it scrolls.
final
- minLines → int
-
The lines the box stands at when empty.
final
-
onChanged
→ ValueChanged<
String> ? -
Reports each edit.
final
- readOnly → bool
-
Whether its text is shown but not edited.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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