DynamicSingleTextField class

This class is the Dynamic Single Text Field and provide to developer different customizations

Inheritance

Constructors

DynamicSingleTextField.new({Key? key, required List<SingleTextModel> singleTextModelList, ScrollPhysics? scrollPhysics, ScrollController? scrollController, double singleDynamicListHeight = 150, double singleTextHeight = 70, double singleTextWidth = 70, TextStyle? textFieldTextStyle, String singleHintText = "", TextStyle? singleHintTextStyle, InputBorder? inputBorder, InputBorder? enableInputBorder, InputBorder? disableInputBorder, InputBorder? focusedInputBorder, TextInputType? textInputType = TextInputType.text, Color cursorColor = Colors.black, bool isReadOnly = false, bool isObscureText = false, String obscuringCharacter = "•", Color? singleTextFillColor, dynamic onChangeSingleText(String value, int index)?, dynamic onSubmitSingleText(String value)?, Function? onValidationBaseOnLength, ShowLabelsTypeEnum showLabelsType = ShowLabelsTypeEnum.hideLabelsType, TextStyle? textStyleTopLabel, TextStyle? textStyleBottomLabel, double widgetLeftMargin = 20, double topLabelMarginBottom = 0, double bottomLabelMarginTop = 0})
const

Properties

bottomLabelMarginTop double
This parameter is the bottom label text margin top, with default value 0
final
cursorColor Color
This parameter is the option to set the cursor color for single texts, with default value black
final
disableInputBorder InputBorder?
This parameter is the option to set the disable border for single texts
final
enableInputBorder InputBorder?
This parameter is the option to set the enable border for single texts
final
focusedInputBorder InputBorder?
This parameter is the option to set the focused border for single texts
final
hashCode int
The hash code for this object.
no setterinherited
inputBorder InputBorder?
This parameter is the option to set the input border for single texts
final
isObscureText bool
This parameter is the option to set if the single texts is obscure, with default value false
final
isReadOnly bool
This parameter is the option to set if the single texts is read only, with default value false
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
obscuringCharacter String
This parameter is the option to set the obscuring character for single texts, with default value •
final
onChangeSingleText → dynamic Function(String value, int index)?
listeners - call backs This parameter is the call back to get the character during the typing (real time) and the index of the single text
final
onSubmitSingleText → dynamic Function(String value)?
This parameter is the call back to get the character when press the done/return button from the keyboard
final
onValidationBaseOnLength Function?
This parameter is the call back to validate the characters based on the length
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollController ScrollController?
This parameter is the option to set the scroll controller for the ListView
final
scrollPhysics ScrollPhysics?
This parameter is the option to set scroll physics for the ListView
final
showLabelsType ShowLabelsTypeEnum
Labels Section This parameter is the enum class to set if need label on top or bottom or both, showBottomLabelType, showBothLabelsType, hideLabelsType default value: hideLabelsType
final
singleDynamicListHeight double
This parameter is the option to set the height of the dynamic ListView, with default value 150
final
singleHintText String
This parameter is the option to set the hint for the single texts
final
singleHintTextStyle TextStyle?
This parameter is the option to set the hint for single text style
final
singleTextFillColor Color?
This parameter is the option to set the fill color for single texts
final
singleTextHeight double
Single Text Section This parameter is the option to set the height for the single texts, with default value 70
final
singleTextModelList List<SingleTextModel>
ListView Section This parameter is the list of model for single text
final
singleTextWidth double
This parameter is the option to set the width for the single texts, with default value 70
final
textFieldTextStyle TextStyle?
This parameter is the option to set the single texts style
final
textInputType TextInputType?
This parameter is the option to set the input type for single texts, with default value text
final
textStyleBottomLabel TextStyle?
This parameter is the bottom label text style
final
textStyleTopLabel TextStyle?
This parameter is the top label text style
final
topLabelMarginBottom double
This parameter is the top label text margin bottom, with default value 0
final
widgetLeftMargin double
This parameter is the single texts left margin, with default value 20
final

Methods

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