animated_otp_fields class

Inheritance

Constructors

animated_otp_fields(TextEditingController textEditingController, {int OTP_digitsCount = 6, TextInputType keyboardType = TextInputType.number, dynamic onFieldSubmitted(String), String obscureCharacter = '*', BorderRadiusGeometry borderRadius, Border border = const Border(bottom: BorderSide(width: 2)), bool autoFocus = true, double fieldWidth = 30.0, double fieldHeight = 30.0, TextStyle textStyle = const TextStyle(fontSize: 20), Color fieldBackgroungColor = Colors.transparent, EdgeInsetsGeometry contentPadding = const EdgeInsets.all(0.0), TextAnimation animation = TextAnimation.Fading, Duration duration = const Duration(seconds: 1), Curve forwardCurve = Curves.linear, Curve reverseCurve = Curves.linear, bool obscureText = false, double spaceBetweenFields = 20.0})

Properties

animation TextAnimation
final
autoFocus bool
final
border Border
final
borderRadius BorderRadiusGeometry
final
contentPadding EdgeInsetsGeometry
final
duration Duration
final
fieldBackgroungColor Color
final
fieldHeight double
final
fieldWidth double
final
forwardCurve Curve
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
key Key
Controls how one widget replaces another widget in the tree. [...]
final, inherited
keyboardType TextInputType
final
obscureCharacter String
final
obscureText bool
final
onFieldSubmitted → dynamic Function(String)
final
OTP_digitsCount int
read / write
reverseCurve Curve
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
spaceBetweenFields double
final
textEditingController TextEditingController
final
textStyle TextStyle
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree. [...]
inherited
createState() → _animated_otp_fieldState
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. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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. [...]
@nonVirtual, inherited