ReactiveTextField class

Reactive stylized TextField wrapper.

Inheritance
Available extensions

Constructors

ReactiveTextField({Key? key, required ReactiveFieldState state, bool? dense, bool enabled = true, Color? fillColor, bool? filled, List<TextInputFormatter>? formatters, String? hint, Color? hintColor, IconData? icon, String? label, FloatingLabelBehavior floatingLabelBehavior = FloatingLabelBehavior.auto, int? maxLength, int? maxLines = 1, int? minLines, bool obscure = false, VoidCallback? onChanged, void onSuffixPressed()?, void onCanceled()?, EdgeInsets? padding, Widget? prefix, String? prefixText, TextStyle? prefixStyle, TextStyle? style, IconData? suffix, TextAlign textAlign = TextAlign.start, TextInputAction? textInputAction, Widget? trailing, bool treatErrorAsStatus = true, TextInputType? type, Widget? subtitle, bool clearable = true, bool? selectable, bool floatingAccent = false, TextCapitalization textCapitalization = TextCapitalization.sentences, bool spellCheck = true, AutocompleteKind? autocomplete})
const
ReactiveTextField.copyable({Key? key, required String text, String? label})
ReactiveTextField with trailing copy button.
factory

Properties

autocomplete → AutocompleteKind?
AutocompleteKind to pass to this field.
final
clearable → bool
Indicator whether this ReactiveTextField should display a save button, when being empty, if state is approvable.
final
dense → bool?
Indicator whether this ReactiveTextField should be dense or not.
final
enabled → bool
Indicator whether this field should be enabled or not.
final
fillColor → Color?
Fill color of the TextField.
final
filled → bool?
Indicator whether this ReactiveTextField should be filled with Color.
final
floatingAccent → bool
Indicator whether the style of floating label should have accent.
final
floatingLabelBehavior → FloatingLabelBehavior
FloatingLabelBehavior of this ReactiveTextField.
final
formatters → List<TextInputFormatter>?
List of TextInputFormatter that formats the input of TextField.
final
hashCode → int
The hash code for this object.
no setterinherited
hint → String?
Optional hint of this ReactiveTextField.
final
hintColor → Color?
Optional hint color of this ReactiveTextField.
final
icon → IconData?
Optional leading icon.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → String?
Optional label of this ReactiveTextField.
final
maxLength → int?
Maximum number of characters allowed in this TextField.
final
maxLines → int?
Maximum number of lines to show at one time, wrapping if necessary.
final
minLines → int?
Minimum number of lines to occupy when the content spans fewer lines.
final
obscure → bool
Indicator whether TextField's text should be obscured or not.
final
onCanceled → void Function()?
Callback, called when user presses the cancel button.
final
onChanged → VoidCallback?
Callback, called when TextField is changed.
final
onSuffixPressed → void Function()?
Callback, called when user presses the suffix.
final
padding → EdgeInsets?
Optional content padding.
final
prefix → Widget?
Optional prefix Widget.
final
prefixStyle → TextStyle?
TextStyle of the prefixText.
final
prefixText → String?
Optional text prefix to display before the input.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectable → bool?
Indicator whether text within this ReactiveTextField should be selectable.
final
spellCheck → bool
Indicator whether spell checking and auto correction should be enabled for this field.
final
state → ReactiveFieldState
Reactive state of this ReactiveTextField.
final
style → TextStyle?
Style of the text of the TextField.
final
subtitle → Widget?
Optional subtitle Widget.
final
suffix → IconData?
Optional IconData to display instead of the trailing.
final
textAlign → TextAlign
TextAlign of this ReactiveTextField.
final
textCapitalization → TextCapitalization
TextCapitalization of this ReactiveTextField.
final
textInputAction → TextInputAction?
Type of action button to use for the keyboard.
final
trailing → Widget?
Optional trailing Widget.
final
treatErrorAsStatus → bool
Indicator whether the ReactiveFieldState.error being non-null should be treated as a RxStatus.error.
final
type → TextInputType?
Type of the TextField.
final

Methods

animate({Key? key, List<Effect>? effects, AnimateCallback? onInit, AnimateCallback? onPlay, AnimateCallback? onComplete, bool? autoPlay, Duration? delay, AnimationController? controller, Adapter? adapter, double? target, double? value}) → Animate

Available on Widget, provided by the AnimateWidgetExtensions extension

Wraps the target Widget in an Animate instance, and returns the instance for chaining calls. Ex. myWidget.animate() is equivalent to Animate(child: myWidget).
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

Static Methods

password({Key? key, required TextFieldState state, String? label, String? hint, required RxBool obscured, bool treatErrorAsStatus = true, TextStyle? style, AutocompleteKind autocomplete = AutocompleteKind.currentPassword}) → Widget
Constructs a ReactiveTextField tuned best for password-type fields.