GNTextFormField class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- GNTextFormField
- Available extensions
Constructors
-
GNTextFormField.new({Key? key, required TextEditingController controller, TextInputType? keyboardType, int? maxLines, bool? enabled, bool isObscureText = false, bool? readOnly, bool? enableInteractiveSelection, Color? inputTextColor, String? inputTextFontFamily, Color? cursorColor, bool? isFilled, Color? filledColor, String? hintText, bool? isPrefixIcon = false, IconData? prefixIcon, double? prefixIconSize, EdgeInsetsGeometry? contentPadding, Color? cancelIconColor, Color? hoverColor, Color? prefixIconColor, bool? isDense, String? labelText, Color? labelTextColor, double? labelTextSize, Color? disabledBorderColor, Color? enabledBorderColor, Color? focusedErrorBorderColor, Color? errorBorderColor, Color? focusedBorderColor, Color? borderColor, double? borderRadius, String? emptyValidationMessage, ValidationFunction? customValidation, VoidCallback? onTap, bool? isRequired = false, VoidCallback? onFieldSubmitted, bool? isPassword = false, bool? allowNegativeNo = false, bool? allowZeroNo = false, bool? allowDecimalNo = true, dynamic onChanged(String)?, FocusNode? focusNode, VoidCallback? onCancelPressed, bool? isShowCancelIcon = true, TextAlignVertical? verticalTextAlign, TextAlign? textAlign, TextDirection? textDirection, Widget? prefixIconImage, int? maxLength, TextStyle? hintStyle, TextStyle? errorStyle, bool enable = true, FormFieldSetter<
String> ? onSaved, bool? showQuantityWarning = false, String? quantityWarningMessage, bool? isForcePasswordLowerCase = true, bool? isForcePasswordUpperCase = true, bool? isForcePasswordNo = true, bool? isForcePasswordSpecialChar = true, bool? isPasswordValidation = true, double? inputTextSize, Widget? suffixIcon, List? inputFormatters, bool? isPhoneValidation = true, bool? isNumberValidation = true, bool? isEmailValidation = true, bool isFirstLetterCapital = true, String? hintTextFontFamily})
Properties
- allowDecimalNo → bool?
-
final
- allowNegativeNo → bool?
-
final
- allowZeroNo → bool?
-
final
- borderColor → Color?
-
final
- borderRadius → double?
-
final
- cancelIconColor → Color?
-
final
- contentPadding → EdgeInsetsGeometry?
-
final
- controller → TextEditingController
-
final
- cursorColor → Color?
-
final
- customValidation → ValidationFunction?
-
final
- disabledBorderColor → Color?
-
final
- emptyValidationMessage → String?
-
final
- enable → bool
-
final
- enabled → bool?
-
final
- enabledBorderColor → Color?
-
final
- enableInteractiveSelection → bool?
-
final
- errorBorderColor → Color?
-
final
- errorStyle → TextStyle?
-
final
- filledColor → Color?
-
final
- focusedBorderColor → Color?
-
final
- focusedErrorBorderColor → Color?
-
final
- focusNode → FocusNode?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hintStyle → TextStyle?
-
final
- hintText → String?
-
final
- hintTextFontFamily → String?
-
final
- hoverColor → Color?
-
final
- inputFormatters → List?
-
final
- inputTextColor → Color?
-
final
- inputTextFontFamily → String?
-
final
- inputTextSize → double?
-
final
- isDense → bool?
-
final
- isEmailValidation → bool?
-
final
- isFilled → bool?
-
final
- isFirstLetterCapital → bool
-
final
- isForcePasswordLowerCase → bool?
-
final
- isForcePasswordNo → bool?
-
final
- isForcePasswordSpecialChar → bool?
-
final
- isForcePasswordUpperCase → bool?
-
final
- isNumberValidation → bool?
-
final
- isObscureText ↔ bool
-
getter/setter pair
- isPassword → bool?
-
final
- isPasswordValidation → bool?
-
final
- isPhoneValidation → bool?
-
final
- isPrefixIcon → bool?
-
final
- isRequired → bool?
-
final
- isShowCancelIcon → bool?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardType → TextInputType?
-
final
- labelText → String?
-
final
- labelTextColor → Color?
-
final
- labelTextSize → double?
-
final
- maxLength → int?
-
final
- maxLines → int?
-
final
- onCancelPressed → VoidCallback?
-
final
- onChanged ↔ dynamic Function(String)?
-
getter/setter pair
- onFieldSubmitted → VoidCallback?
-
final
-
onSaved
→ FormFieldSetter<
String> ? -
final
- onTap → VoidCallback?
-
final
- prefixIcon → IconData?
-
final
- prefixIconColor → Color?
-
final
- prefixIconImage → Widget?
-
final
- prefixIconSize → double?
-
final
- quantityWarningMessage → String?
-
final
- readOnly → bool?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showQuantityWarning → bool?
-
final
- suffixIcon → Widget?
-
final
- textAlign → TextAlign?
-
final
- textDirection → TextDirection?
-
final
- verticalTextAlign → TextAlignVertical?
-
final
Methods
-
animate(
{Key? key, List< Effect> ? effects, AnimateCallback? onInit, AnimateCallback? onPlay, AnimateCallback? onComplete, bool? autoPlay, Duration? delay, AnimationController? controller, Adapter? adapter, double? target, double? value}) → Animate -
Available on Widget, provided by the AnimateWidgetExtensions extension
Wraps the target Widget in an Animate instance, and returns the instance for chaining calls. Ex.myWidget.animate()
is equivalent toAnimate(child: myWidget)
. -
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< GNTextFormField> -
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