ReactiveTextField class
Reactive stylized TextField wrapper.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- ReactiveTextField
- Available extensions
Constructors
-
ReactiveTextField({Key? key, required ReactiveFieldState state, bool? dense, bool enabled = true, Color? fillColor, bool? filled, List<
TextInputFormatter> ? formatters, String? hint, 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}) -
const
Properties
- 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
- 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
- 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
- marginZero → Widget
-
Available on Widget, provided by the WidgetMarginX extension
no setter - 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
- paddingZero → Widget
-
Available on Widget, provided by the WidgetPaddingX extension
no setter - 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
- sliverBox → Widget
-
Available on Widget, provided by the WidgetSliverBoxX extension
no setter - 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
- 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 toAnimate(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
-
marginAll(
double margin) → Widget -
Available on Widget, provided by the WidgetMarginX extension
-
marginOnly(
{double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0}) → Widget -
Available on Widget, provided by the WidgetMarginX extension
-
marginSymmetric(
{double horizontal = 0.0, double vertical = 0.0}) → Widget -
Available on Widget, provided by the WidgetMarginX extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paddingAll(
double padding) → Widget -
Available on Widget, provided by the WidgetPaddingX extension
-
paddingOnly(
{double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0}) → Widget -
Available on Widget, provided by the WidgetPaddingX extension
-
paddingSymmetric(
{double horizontal = 0.0, double vertical = 0.0}) → Widget -
Available on Widget, provided by the WidgetPaddingX extension
-
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