ZdsResizableTextArea class

A text input area with handle icon in the bottom right corner that can be used to resize the typing input area.

Inheritance
Available Extensions

Constructors

ZdsResizableTextArea({Key? key, TextInputAction textInputAction = TextInputAction.none, String? hintText, String? label, int? maxLines, double height = 100, double maxHeight = double.infinity, double minHeight = 48, TextStyle? textStyle, TextEditingController? controller, ValueChanged<String>? onChanged, FocusNode? focusNode, bool enabled = true, String? footerText, InputDecoration? decoration, String? semanticLabel})
Constructs a ZdsResizableTextArea.
const

Properties

controller TextEditingController?
A controller that can be used to notify listeners when the text changes.
final
decoration InputDecoration?
Input decoration used for underlying TextField.
final
enabled bool
Whether the text is disabled.
final
focusNode FocusNode?
The focus node given to the text area.
final
footerText String?
shown at the bottom of the text editor
final
hashCode int
The hash code for this object.
no setterinherited
height double
The height's height of the text field/box
final
hintText String?
Hint text that will appear when the user hasn't written anything inside text area
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label String?
The label that will be shown at the above of text area.
final
maxHeight double
This is maximum height of the text field/box
final
maxLines int?
This is the maximum number of lines that user can enter inside text area
final
minHeight double
The minimum height of the text field.
final
onChanged ValueChanged<String>?
Callback called whenever the resizable textarea's text changes.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel String?
The semanticLabel that will be shown at the above of text area.
final
textInputAction TextInputAction
The textInputAction's input action button of keyboard of the text field/box
final
textStyle TextStyle?
Defaults to TextTheme.bodyMedium.
final

Methods

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