FCCTextField class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FCCTextField
Constructors
-
FCCTextField({Key? key, TextEditingController? controller, String? labelText, String? initialValue, IconData? prefixIcon, IconData? suffixIcon, VoidCallback? suffixIconCallback, Widget? suffixWidget, Widget? prefix, Widget? suffix, FormFieldValidator<
String> ? validator, List<FormFieldValidator< ? additionalValidators, bool readOnly = false, bool obscureText = false, Color? fillColor, double? fontSize, FontWeight? fontWeight, String? fontFamily, Color? textColor, TextStyle? style, TextAlign? textAlign, TextDirection? textDirection, VoidCallback? onTap, FocusNode? focusNode, TextInputType? keyboardType, ValueChanged<String> >String> ? onChanged, Duration debounceDuration = const Duration(milliseconds: 300), ValueChanged<String> ? onDebouncedChanged, String? helperText, String? hintText, TextStyle? hintTextStyle, int? maxLines, bool isDate = false, bool isTime = false, bool isDateTime = false, String dateFormat = 'yyyy-MM-dd', String timeFormat = 'HH:mm:ss', DateTime? defaultDate, DateTime? minDate, DateTime? maxDate, bool autoFocus = false, TextInputAction? textInputAction, List<TextInputFormatter> ? inputFormatters, int? maxLength, ValueChanged<String> ? onSubmitted, bool enabled = true, Color? cursorColor, double? cursorWidth = 2.0, VoidCallback? onEditingComplete, TextCapitalization textCapitalization = TextCapitalization.none, bool showClearButton = false, bool use3DEffect = true, bool isPill = false, String? semanticLabel, bool enableFocusEffect = true, bool required = false, String? requiredMessage, AutovalidateMode? autoValidateMode, bool showBorder = true, String? tooltip, bool visible = true, bool autoTrimOnUnfocus = true, Future<String?> asyncValidator(String value)?, Duration asyncValidationDebounce = const Duration(milliseconds: 400), FccValidationStyle validationStyleBuilder(BuildContext, String message)?, bool showCharacterCounter = false, bool showLoading = false, Widget? loadingWidget, bool showStepper = false, double step = 1.0, double? minValue, double? maxValue, bool enableErrorAnimations = true, Duration errorAnimationDuration = const Duration(milliseconds: 380), FccAutoCapitalizeMode autoCapitalizeMode = FccAutoCapitalizeMode.none, bool enableFocusScaleAnimation = true, double focusScaleFactor = 1.02, bool useHoldToRevealPassword = true, FccInputMaskType? maskType, TextInputFormatter? maskFormatter}) -
const
Properties
-
additionalValidators
→ List<
FormFieldValidator< ?String> > -
final
- asyncValidationDebounce → Duration
-
final
-
asyncValidator
→ Future<
String?> Function(String value)? -
Async validator
final
- autoCapitalizeMode → FccAutoCapitalizeMode
-
Auto-capitalization modes (applied on focus loss)
final
- autoFocus → bool
-
final
- autoTrimOnUnfocus → bool
-
Auto-trim behavior
final
- autoValidateMode → AutovalidateMode?
-
final
- controller → TextEditingController?
-
final
- cursorColor → Color?
-
final
- cursorWidth → double?
-
final
- dateFormat → String
-
final
- debounceDuration → Duration
-
Debounced onChanged
final
- defaultDate → DateTime?
-
final
- enabled → bool
-
final
- enableErrorAnimations → bool
-
Error animations
final
- enableFocusEffect → bool
-
final
- enableFocusScaleAnimation → bool
-
Animated autofocus / focus scale
final
- errorAnimationDuration → Duration
-
final
- fillColor → Color?
-
final
- focusNode → FocusNode?
-
final
- focusScaleFactor → double
-
final
- fontFamily → String?
-
final
- fontSize → double?
-
final
- fontWeight → FontWeight?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- helperText → String?
-
final
- hintText → String?
-
final
- hintTextStyle → TextStyle?
-
final
- initialValue → String?
-
final
-
inputFormatters
→ List<
TextInputFormatter> ? -
final
- isDate → bool
-
final
- isDateTime → bool
-
final
- isPill → bool
-
final
- isTime → bool
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardType → TextInputType?
-
final
- labelText → String?
-
final
- loadingWidget → Widget?
-
final
- maskFormatter → TextInputFormatter?
-
final
- maskType → FccInputMaskType?
-
Input masking
final
- maxDate → DateTime?
-
final
- maxLength → int?
-
final
- maxLines → int?
-
final
- maxValue → double?
-
final
- minDate → DateTime?
-
final
- minValue → double?
-
final
- obscureText → bool
-
final
-
onChanged
→ ValueChanged<
String> ? -
final
-
onDebouncedChanged
→ ValueChanged<
String> ? -
final
- onEditingComplete → VoidCallback?
-
final
-
onSubmitted
→ ValueChanged<
String> ? -
final
- onTap → VoidCallback?
-
final
- prefix → Widget?
-
final
- prefixIcon → IconData?
-
final
- readOnly → bool
-
final
- required → bool
-
final
- requiredMessage → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticLabel → String?
-
final
- showBorder → bool
-
final
- showCharacterCounter → bool
-
Show character counter (uses maxLength)
final
- showClearButton → bool
-
final
- showLoading → bool
-
Show loading state inside field
final
- showStepper → bool
-
Numeric stepper
final
- step → double
-
final
- style → TextStyle?
-
final
- suffix → Widget?
-
final
- suffixIcon → IconData?
-
final
- suffixIconCallback → VoidCallback?
-
final
- suffixWidget → Widget?
-
final
- textAlign → TextAlign?
-
final
- textCapitalization → TextCapitalization
-
final
- textColor → Color?
-
final
- textDirection → TextDirection?
-
final
- textInputAction → TextInputAction?
-
final
- timeFormat → String
-
final
- tooltip → String?
-
final
- use3DEffect → bool
-
final
- useHoldToRevealPassword → bool
-
Password reveal behavior
final
- validationStyleBuilder → FccValidationStyle Function(BuildContext, String message)?
-
Validation style builder (icon/color per message)
final
-
validator
→ FormFieldValidator<
String> ? -
final
- visible → bool
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< FCCTextField> -
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