AppTextFormField class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AppTextFormField
Constructors
-
AppTextFormField({List<
String> ? autofillHints, AutovalidateMode autoValidateMode = AutovalidateMode.disabled, InputBorder? border, BoxConstraints? constraints, EdgeInsets? contentPadding, TextEditingController? controller, Duration debounceTime = Duration.zero, InputBorder? disabledBorder, bool enabled = true, InputBorder? enabledBorder, InputBorder? errorBorder, AppTextFormFieldErrorType errorType = AppTextFormFieldErrorType.string, Color? fillColor, bool? filled, InputBorder? focusedBorder, FocusNode? focusNode, String? helperText, String? hintText, TextStyle? hintStyle, Color? hoverColor, String? initialValue, List<TextInputFormatter> ? inputFormatters, InputDecorationTheme? inputTheme, bool? isCollapsed, TextInputType? keyboardType, AppTextFormFieldLabelBehavior labelBehavior = AppTextFormFieldLabelBehavior.flutterAuto, String? labelText, TextStyle? labelStyle, Widget? label, bool loseFocusOnOutsideTap = true, int? maxLength, int? maxLines = 1, int? minLines, bool obscureText = false, FutureOr<void> onChanged(String value)?, ValueChanged<String> ? onFieldSubmitted, ValueChanged<bool> ? onFocusChanged, Widget? prefix, Widget? prefixIcon, String? prefixText, bool readOnly = false, bool requestFocusOnInitState = false, ScrollPhysics? scrollPhysics, bool selectAllOnFocus = false, bool showLoader = false, TextStyle? style, Widget? suffix, Widget? suffixIcon, String? suffixText, TextStyle? suffixStyle, TextAlign textAlign = TextAlign.start, TextInputAction? textInputAction, FormFieldValidator<String> ? validator, Key? key}) -
const
-
AppTextFormField.search({InputBorder? border, BoxConstraints? constraints, EdgeInsets? contentPadding, TextEditingController? controller, InputBorder? disabledBorder, bool enabled = true, Color? fillColor, bool? filled, InputBorder? focusedBorder, FocusNode? focusNode, String? helperText, String? hintText = 'Search', Color? hoverColor, String? initialValue, InputDecorationTheme? inputTheme, bool? isCollapsed, String? labelText, TextStyle? labelStyle, Widget? label, bool loseFocusOnOutsideTap = true, FutureOr<
void> onChanged(String value)?, ValueChanged<String> ? onFieldSubmitted, ValueChanged<bool> ? onFocusChanged, bool readOnly = false, bool requestFocusOnInitState = false, ScrollPhysics? scrollPhysics, bool selectAllOnFocus = false, Widget? suffixIcon, TextAlign textAlign = TextAlign.start, Key? key})
Properties
-
autofillHints
→ List<
String> ? -
final
- autoValidateMode → AutovalidateMode
-
final
- border → InputBorder?
-
final
- constraints → BoxConstraints?
-
final
- contentPadding → EdgeInsets?
-
final
- controller → TextEditingController?
-
final
- debounceTime → Duration
-
final
- disabledBorder → InputBorder?
-
final
- enabled → bool
-
final
- enabledBorder → InputBorder?
-
final
- errorBorder → InputBorder?
-
final
- errorType → AppTextFormFieldErrorType
-
final
- fillColor → Color?
-
final
- filled → bool?
-
final
- focusedBorder → InputBorder?
-
final
- focusNode → FocusNode?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- helperText → String?
-
final
- hintStyle → TextStyle?
-
final
- hintText → String?
-
final
- hoverColor → Color?
-
final
- initialValue → String?
-
final
-
inputFormatters
→ List<
TextInputFormatter> ? -
final
- inputTheme → InputDecorationTheme?
-
final
- isCollapsed → bool?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardType → TextInputType?
-
final
- label → Widget?
-
final
- labelBehavior → AppTextFormFieldLabelBehavior
-
final
- labelStyle → TextStyle?
-
final
- labelText → String?
-
final
- loseFocusOnOutsideTap → bool
-
final
- maxLength → int?
-
final
- maxLines → int?
-
Value is ignored if obscureText is true
final
- minLines → int?
-
final
- obscureText → bool
-
final
-
onChanged
→ FutureOr<
void> Function(String value)? -
final
-
onFieldSubmitted
→ ValueChanged<
String> ? -
final
-
onFocusChanged
→ ValueChanged<
bool> ? -
final
- prefix → Widget?
-
final
- prefixIcon → Widget?
-
final
- prefixText → String?
-
final
- readOnly → bool
-
final
- requestFocusOnInitState → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollPhysics → ScrollPhysics?
-
final
- selectAllOnFocus → bool
-
final
- showLoader → bool
-
final
- style → TextStyle?
-
final
- suffix → Widget?
-
final
- suffixIcon → Widget?
-
Value is ignored if obscureText is true
final
- suffixStyle → TextStyle?
-
final
- suffixText → String?
-
final
- textAlign → TextAlign
-
final
- textInputAction → TextInputAction?
-
final
-
validator
→ FormFieldValidator<
String> ? -
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< AppTextFormField> -
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}) → 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
Static Properties
- defaultDebounceTime → Duration
-
no setter
- tapRegionGroupId ↔ String
-
getter/setter pair