CustomPasswordTextFieldWidget class
A specialized text field widget for password input with show/hide toggle.
This widget extends the functionality of CustomTextFieldWidget by adding a built-in eye icon that toggles password visibility.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CustomPasswordTextFieldWidget
Constructors
-
CustomPasswordTextFieldWidget({Key? key, String? initialValue, String? label, String? hintText, Widget? prefix, Widget? suffix, VoidCallback? suffixAction, TextEditingController? controller, TextInputType inputType = TextInputType.visiblePassword, TextCapitalization textCapitalization = TextCapitalization.none, FormFieldValidator? validator, bool? isEnabled = true, Color? color = const Color(0xFF3E4A59), void onChanged(String)?, double? fontSize, bool centerText = false, bool readOnly = false, String? errorMessage, void onSubmitted(String)?, bool? filled = false, Color? fillColor, List<
TextInputFormatter> ? inputFormatters, TextStyle? hintStyle, TextStyle? textStyle, TextStyle? labelTextStyle, EdgeInsets? contentPadding, int? maxLength, VoidCallback? onTap, InputBorder? border, TextInputAction? textInputAction, FocusNode? focusNode, AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction, bool unFocusOnTapOutside = false}) - Creates a CustomPasswordTextFieldWidget with the specified parameters.
Properties
- autovalidateMode → AutovalidateMode
-
Auto-validation mode for form validation
final
- border → InputBorder?
-
Border style for the text field
final
- centerText ↔ bool
-
getter/setter pair
- color → Color?
-
Text color for the input field
final
- contentPadding → EdgeInsets?
-
final
- controller → TextEditingController?
-
Controller for the text field
final
- errorMessage → String?
-
final
- fillColor → Color?
-
Background fill color for the input field
final
- filled → bool?
-
final
- focusNode → FocusNode?
-
Focus node for the text field
final
- fontSize → double?
-
Font size for the input text
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hintStyle → TextStyle?
-
final
- hintText → String?
-
Hint text displayed when the field is empty
final
- initialValue → String?
-
Initial value for the text field
final
-
inputFormatters
→ List<
TextInputFormatter> ? -
final
- inputType → TextInputType
-
Type of keyboard to display (defaults to visiblePassword)
final
- isEnabled → bool?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → String?
-
Label text displayed above the field
final
- labelTextStyle → TextStyle?
-
final
- maxLength → int?
-
Maximum number of characters allowed
final
- onChanged → void Function(String)?
-
final
- onSubmitted → void Function(String)?
-
final
- onTap → VoidCallback?
-
final
- prefix → Widget?
-
Widget displayed before the text input
final
- readOnly ↔ bool
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- suffix → Widget?
-
Widget displayed after the text input
final
- suffixAction → VoidCallback?
-
Callback when suffix widget is tapped
final
- textCapitalization → TextCapitalization
-
Text capitalization behavior
final
- textInputAction → TextInputAction?
-
final
- textStyle → TextStyle?
-
final
- unFocusOnTapOutside → bool
-
final
- validator → FormFieldValidator?
-
Validation function for the field
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< CustomPasswordTextFieldWidget> -
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