BoltPinInput class

Inheritance

Constructors

BoltPinInput({Key? key, required int length, required dynamic onCompleted(String), dynamic onChanged(String)?, bool obscureText = false, PinInputTheme theme = PinInputTheme.outlined, Color? activeColor, Color? inactiveColor, Color? textColor, Color? backgroundColor, String? errorText, TextStyle? errorTextStyle, FocusNode? focusNode, String? initialValue, TextInputType keyboardType = TextInputType.number, double? width, double? height, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, BorderRadius? borderRadius, double? fontSize, Decoration? pinDecoration, Duration animationDuration = const Duration(milliseconds: 300), bool autofocus = false, bool showCursor = true, List<TextInputFormatter>? inputFormatters})
const

Properties

activeColor → Color?
Color of the active field
final
animationDuration → Duration
Animation duration for selection changes
final
autofocus → bool
Whether to auto-focus the field on load
final
backgroundColor → Color?
Background color of the field (for filled theme)
final
borderRadius → BorderRadius?
Border radius for the fields
final
errorText → String?
Error text to display
final
errorTextStyle → TextStyle?
Error text style
final
focusNode → FocusNode?
Focus node for the input
final
fontSize → double?
Size of the text
final
hashCode → int
The hash code for this object.
no setterinherited
height → double?
Field height
final
inactiveColor → Color?
Color of the inactive field
final
initialValue → String?
Initial value for the PIN
final
inputFormatters → List<TextInputFormatter>?
Input formatters to restrict input
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType → TextInputType
Input type to restrict characters
final
length → int
Number of PIN fields
final
margin → EdgeInsetsGeometry?
Field margin
final
obscureText → bool
Controls the obscuring of text (for passwords/PINs)
final
onChanged → dynamic Function(String)?
Function called on every input change
final
onCompleted → dynamic Function(String)
Function called when all fields are filled
final
padding → EdgeInsetsGeometry?
Field padding
final
pinDecoration → Decoration?
Decoration for the pin fields
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showCursor → bool
Whether to show cursor in text fields
final
textColor → Color?
Color of text
final
theme → PinInputTheme
Choose from predefined themes or create custom
final
width → double?
Field width
final

Methods

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