Fluent2TextArea class
Fluent 2's Textarea: several lines in a field at least 52 tall (40 small, 64 large), 6 over the words and 12 at the sides, growing with its text up to 260 (200, 320) and scrolling past it, on the outline or a filled face with the brand underline on focus (Fluent's Textarea has no underline face). The page owns the text through value and onChanged, or a controller; with neither it is disabled.
Fluent2TextArea(label: 'Notes', hint: 'What should the team know?', value: notes, onChanged: (v) => setState(() => notes = v))
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- Fluent2TextArea
Constructors
-
Fluent2TextArea({String? label, String? value, ValueChanged<
String> ? onChanged, TextEditingController? controller, FocusNode? focusNode, bool autofocus = false, String? hint, Fluent2InputAppearance appearance = Fluent2InputAppearance.outline, Fluent2InputSize size = Fluent2InputSize.medium, bool invalid = false, bool readOnly = false, Fluent2Style? style, Key? key}) -
A text area for several lines, Fluent's Textarea.
const
Properties
- appearance → Fluent2InputAppearance
-
Fluent's
appearance: which of its faces it wears.final - autofocus → bool
-
Whether it takes focus when it first builds.
final
- controller → TextEditingController?
-
The controller that holds the words; null makes its own.
final
- focusNode → FocusNode?
-
The focus node it takes focus with; null makes its own.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hint → String?
-
The words shown while it is empty.
final
- invalid → bool
-
Whether it shows Fluent's invalid state, its edge in the danger colour.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → String?
-
What a screen reader calls the field; null reads the surrounding form
field's label.
final
-
onChanged
→ ValueChanged<
String> ? -
Called with the new value when the user changes it; null puts it out of
use.
final
- readOnly → bool
-
Whether its value can be read and selected but not changed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → Fluent2InputSize
-
Fluent's
size: how large it is drawn.final - style → Fluent2Style?
-
This field's own look, slot by slot, over the text field theme
(Fluent2ThemeData.textFieldTheme): the slots Fluent2FieldFrame
names.
final
- value → String?
-
The words it starts with; null starts empty.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< Fluent2TextArea> -
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