UFUInputBox class

Inheritance

Constructors

UFUInputBox.new({String? label, TextEditingController? controller, TextInputType? keyboardType, bool readOnly = false, bool obscureText = false, int? maxLines = 1, int? maxLength, bool disabled = false, FocusNode? focusNode, bool autofocus = false, String? hintText, Color? hintFontColor, Widget? prefixChild, Widget? suffixChild, FormFieldValidator? validator, ValueChanged<String>? onChanged, FormFieldSetter? onSaved, VoidCallback? onPressed, int? debounceTime, bool autoGrow = false, UFUInputBoxType type = UFUInputBoxType.withoutLabel, Color? fillColor, Color? labelBgColor, double cursorWidth = 1.5, double? cursorHeight, ScrollController? scrollController, EdgeInsets scrollPadding = const EdgeInsets.all(8.0), ScrollPhysics? scrollPhysics, bool enableSuggestions = false, List<TextInputFormatter>? inputFormatters, Color? cancelButtonColor, double? cancelButtonSize, EdgeInsets? padding, EdgeInsets? errorTextPadding, UFUTextSize textSize = UFUTextSize.heading4, double? hintTextSize, FontWeight? fontWeight, FontWeight? hintFontWeight, UFUFontWeight? outsideLabelFontWeight = UFUFontWeight.bold, VoidCallback? onTapSuffix, Color? borderColor, bool isCounterText = false, UFUInputBoxController? inputBoxController, Widget chip(dynamic)?, List? chipsList, Widget? moreChipsWidget, bool? isRequired = false, bool avoidPrefixConstraints = false, bool isExtWidget = false, UFUInputBoxController? extInputBoxController, BoxConstraints? prefixIconConstraints, bool? showCursor, Color? textColor, TextAlign? textAlign = TextAlign.start, TextAlignVertical? textAlignVertical = TextAlignVertical.top, TextCapitalization textCapitalization = TextCapitalization.sentences, double? borderRadius, TextInputAction? textInputAction, Key? key, dynamic onFieldSubmitted(String value)?, TapRegionCallback? onTapOutside, TapRegionUpCallback? onTapUpOutside})
const

Properties

autofocus bool
It is use to get autofocus or not in a inputBox.
final
autoGrow bool
final
avoidPrefixConstraints bool
final
borderColor Color?
use to give border color to text field
final
borderRadius double?
final
cancelButtonColor Color?
cancelButtonSize is used to adjust cancel button color
final
cancelButtonSize double?
cancelButtonSize is used to adjust cancel button size, default size 22
final
chip Widget Function(dynamic)?
final
chipsList List?
final
controller TextEditingController?
It is use to get value from inputBox.
final
cursorHeight double?
final
cursorWidth double
final
debounceTime int?
we used it when we debounce. We give time in milliseconds.
final
disabled bool
It is use to set inputBox enabled or disabled.
final
enableSuggestions bool
final
errorTextPadding EdgeInsets?
padding is used to adjust text field padding
final
extInputBoxController UFUInputBoxController?
final
fillColor Color?
filledColor can be used to give background color to text field in case field is disabled default color will be AppTheme.themeColors.dimGray
final
focusNode FocusNode?
It is use to get focus of a inputBox.
final
fontWeight FontWeight?
final
hashCode int
The hash code for this object.
no setterinherited
hintFontColor Color?
final
hintFontWeight FontWeight?
final
hintText String?
It is use to set hintText of inputBox.
final
hintTextSize double?
final
inputBoxController UFUInputBoxController?
final
inputFormatters List<TextInputFormatter>?
For masking content
final
isCounterText bool
final
isExtWidget bool
final
isRequired bool?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType TextInputType?
It is use to change keyboardType of inputBox.
final
label String?
It is required to add label of a inputBox.
final
labelBgColor Color?
final
maxLength int?
Defines maxLength of input value of inputBox.
final
maxLines int?
Defines maxLines of input value of inputBox.
final
moreChipsWidget Widget?
final
obscureText bool
Defines inputBox text should be secure or not(For password field).
final
onChanged ValueChanged<String>?
This method is called when inputBox value get changed of inputBox.
final
onFieldSubmitted → dynamic Function(String value)?
final
onPressed VoidCallback?
It is use to set method of inputBox.
final
onSaved FormFieldSetter?
Use to save values into parent controller of inputBox. (value){controller.email = value!;},
final
onTapOutside TapRegionCallback?
final
onTapSuffix VoidCallback?
onTapSuffix will handle tap on suffix icon
final
onTapUpOutside TapRegionUpCallback?
final
outsideLabelFontWeight UFUFontWeight?
final
padding EdgeInsets?
padding is used to adjust text field padding
final
prefixChild Widget?
It is use as prefixChild of inputBox. like... Icon(Icons.lock);
final
prefixIconConstraints BoxConstraints?
prefixIconConstraints can be used to give customised constraints to prefix icon
final
readOnly bool
Defines inputBox is writeable or readOnly.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollController ScrollController?
final
scrollPadding EdgeInsets
final
scrollPhysics ScrollPhysics?
final
showCursor bool?
final
suffixChild Widget?
Defines suffixChild of inputBox. like... Icon(Icons.lock);
final
textAlign TextAlign?
final
textAlignVertical TextAlignVertical?
final
textCapitalization TextCapitalization
final
textColor Color?
final
textInputAction TextInputAction?
final
textSize UFUTextSize
textSize is used to adjust textField text size, default value is UFUTextSize.heading4
final
type UFUInputBoxType
final
validator FormFieldValidator?
Use to validate values of inputBox.
final

Methods

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