FormePinCodeTextField class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FormePinCodeTextField
Constructors
-
FormePinCodeTextField({Key? key, String? name, String initialValue = '', FormeAsyncValidator<
String> ? asyncValidator, Duration? asyncValidatorDebounce, AutovalidateMode? autovalidateMode, FormeFieldDecorator<String> ? decorator, bool enabled = true, FocusNode? focusNode, FormeFieldInitialized<String> ? onInitialized, FormeFieldSetter<String> ? onSaved, FormeFieldStatusChanged<String> ? onStatusChanged, int? order, bool quietlyValidate = false, bool readOnly = false, bool requestFocusOnUserInteraction = true, FormeFieldValidationFilter<String> ? validationFilter, FormeValidator<String> ? validator, required int length, VoidCallback? onTap, TextStyle? textStyle, Curve animationCurve = Curves.easeInOut, bool autofocus = false, Brightness? keyboardAppearance, List<TextInputFormatter> inputFormatters = const [], TextInputType keyboardType = TextInputType.visiblePassword, bool obscureText = false, TextCapitalization textCapitalization = TextCapitalization.none, TextInputAction textInputAction = TextInputAction.done, double cursorWidth = 2, Color? cursorColor, double? cursorHeight, String obscuringCharacter = '●', Widget? obscuringWidget, bool blinkWhenObscuring = false, Duration blinkDuration = const Duration(milliseconds: 500), Color? backgroundColor, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.spaceBetween, Duration animationDuration = const Duration(milliseconds: 150), AnimationType animationType = AnimationType.slide, bool useHapticFeedback = false, bool enableActiveFill = false, bool autoDismissKeyboard = true, PinTheme pinTheme = const PinTheme.defaults(), double errorTextSpace = 16, bool enablePinAutofill = false, int errorAnimationDuration = 500, String? hintCharacter, TextStyle? hintStyle, AutofillContextAction onAutoFillDisposeAction = AutofillContextAction.commit, bool useExternalAutoFillGroup = false, EdgeInsets scrollPadding = const EdgeInsets.all(20), HapticFeedbackTypes hapticFeedbackTypes = HapticFeedbackTypes.light, TextStyle? pastedTextStyle, StreamController<ErrorAnimationType> ? errorAnimationController, bool beforeTextPaste(String? text)?, DialogConfig? dialogConfig, List<BoxShadow> ? boxShadows, bool showCursor = true, Gradient? textGradient, ValueChanged<String> ? onCompleted, bool autoUnfocus = true})
Properties
- animationCurve → Curve
-
final
- animationDuration → Duration
-
final
- animationType → AnimationType
-
final
-
asyncValidator
→ FormeAsyncValidator<
String> ? -
used to perform an async validation
finalinherited
- asyncValidatorDebounce → Duration?
-
not worked when validate manually
finalinherited
- autoDismissKeyboard → bool
-
final
- autofocus → bool
-
final
- autoUnfocus → bool
-
final
- autovalidateMode → AutovalidateMode
-
finalinherited
- backgroundColor → Color?
-
final
- beforeTextPaste → (bool Function(String? text)?)
-
final
- blinkDuration → Duration
-
final
- blinkWhenObscuring → bool
-
final
-
boxShadows
→ List<
BoxShadow> ? -
final
-
builder
→ FormeFieldBuilder<
String> -
finalinherited
- cursorColor → Color?
-
final
- cursorHeight → double?
-
final
- cursorWidth → double
-
final
-
decorator
→ FormeFieldDecorator<
String> ? -
used to decorate field
finalinherited
- dialogConfig → DialogConfig?
-
final
- enableActiveFill → bool
-
final
- enabled → bool
-
whether field is enabled,
finalinherited
- enablePinAutofill → bool
-
final
-
errorAnimationController
→ StreamController<
ErrorAnimationType> ? -
final
- errorAnimationDuration → int
-
final
- errorTextSpace → double
-
final
- fieldType → Type
-
no setterinherited
- focusNode → FocusNode?
-
finalinherited
- hapticFeedbackTypes → HapticFeedbackTypes
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hintCharacter → String?
-
final
- hintStyle → TextStyle?
-
final
- initialValue → String
-
initial value
finalinherited
-
inputFormatters
→ List<
TextInputFormatter> -
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardAppearance → Brightness?
-
final
- keyboardType → TextInputType
-
final
- length → int
-
final
- mainAxisAlignment → MainAxisAlignment
-
final
- name → String?
-
field name
finalinherited
- obscureText → bool
-
final
- obscuringCharacter → String
-
final
- obscuringWidget → Widget?
-
final
- onAutoFillDisposeAction → AutofillContextAction
-
final
-
onCompleted
→ ValueChanged<
String> ? -
final
-
onInitialized
→ FormeFieldInitialized<
String> ? -
called immediately after
FormeFieldState.initStatus
finalinherited -
onSaved
→ FormeFieldSetter<
String> ? -
finalinherited
-
onStatusChanged
→ FormeFieldStatusChanged<
String> ? -
listen field status change
finalinherited
- onTap → VoidCallback?
-
final
- order → int?
-
used to support
Forme.autovalidateByOrder
finalinherited - pastedTextStyle → TextStyle?
-
final
- pinTheme → PinTheme
-
final
- quietlyValidate → bool
-
quietlyValidate
finalinherited
- readOnly → bool
-
finalinherited
- requestFocusOnUserInteraction → bool
-
whether request focus when field value changed
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollPadding → EdgeInsets
-
final
- showCursor → bool
-
final
- textCapitalization → TextCapitalization
-
final
- textGradient → Gradient?
-
final
- textInputAction → TextInputAction
-
final
- textStyle → TextStyle?
-
final
- useExternalAutoFillGroup → bool
-
final
- useHapticFeedback → bool
-
final
-
validationFilter
→ FormeFieldValidationFilter<
String> ? -
used to determine whether perform a validation
finalinherited
-
validator
→ FormeValidator<
String> ? -
sync validator
finalinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → FormeFieldState< String> - Creates the mutable state for this widget at a given location in the tree.
-
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}) → 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