NyTextField class
Nylo's Text Field Widget
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- NyTextField
- Available Extensions
Constructors
-
NyTextField({Key? key, required TextEditingController controller, String? labelText, bool obscureText = false, bool autoFocus = false, TextInputType keyboardType = TextInputType.text, TextAlign? textAlign, int? maxLines = 1, dynamic handleValidationError(String handleError)?, int? minLines, bool enableSuggestions = true, String? hintText, TextStyle? hintStyle, FocusNode? focusNode, String? validationRules, String? dummyData, dynamic onChanged(String value)?, TextStyle? style, StrutStyle? strutStyle, TextInputAction? textInputAction, bool readOnly = false, bool? showCursor, int? maxLength, bool? enabled, DragStartBehavior dragStartBehavior = DragStartBehavior.start, double? cursorHeight, Radius? cursorRadius, Color? cursorColor, GestureTapCallback? onTap, TapRegionCallback? onTapOutside, String? validationErrorMessage, MouseCursor? mouseCursor, TextCapitalization textCapitalization = TextCapitalization.none, MaxLengthEnforcement? maxLengthEnforcement, double cursorWidth = 2.0, AppPrivateCommandCallback? onAppPrivateCommand, List<
TextInputFormatter> ? inputFormatters, bool expands = false, TextAlignVertical? textAlignVertical, TextDirection? textDirection, String obscuringCharacter = '•', bool autocorrect = true, SmartDashesType? smartDashesType, SmartQuotesType? smartQuotesType, InputDecoration? decoration, VoidCallback? onEditingComplete, Brightness? keyboardAppearance, EdgeInsets scrollPadding = const EdgeInsets.all(20.0), TextSelectionControls? selectionControls, ValueChanged<String> ? onSubmitted, ScrollController? scrollController, ScrollPhysics? scrollPhysics, Iterable<String> ? autofillHints = const <String>[], Clip clipBehavior = Clip.hardEdge, bool? passwordVisible, Widget? prefixIcon, Color? backgroundColor, BorderRadius? borderRadius, InputBorder? border, InputBorder? focusedBorder, InputBorder? enabledBorder, EdgeInsetsGeometry? contentPadding, TextStyle? labelStyle}) - Default Text Field
-
NyTextField.compact({Key? key, bool? passwordVisible, String? labelText, required TextEditingController controller, bool obscureText = false, bool autoFocus = false, TextInputType keyboardType = TextInputType.text, TextAlign? textAlign, int? maxLines = 1, dynamic handleValidationError(String handleError)?, int? minLines, bool enableSuggestions = true, String? hintText, TextStyle? hintStyle, FocusNode? focusNode, String? validationRules, String? dummyData, dynamic onChanged(String value)?, TextStyle? style, StrutStyle? strutStyle, TextInputAction? textInputAction, bool readOnly = false, bool? showCursor, int? maxLength, bool? enabled, DragStartBehavior dragStartBehavior = DragStartBehavior.start, double? cursorHeight, Radius? cursorRadius, Color? cursorColor, GestureTapCallback? onTap, TapRegionCallback? onTapOutside, String? validationErrorMessage, MouseCursor? mouseCursor, TextCapitalization textCapitalization = TextCapitalization.none, MaxLengthEnforcement? maxLengthEnforcement, double cursorWidth = 2.0, AppPrivateCommandCallback? onAppPrivateCommand, List<
TextInputFormatter> ? inputFormatters, bool expands = false, TextAlignVertical? textAlignVertical, TextDirection? textDirection, String obscuringCharacter = '•', bool autocorrect = true, SmartDashesType? smartDashesType, SmartQuotesType? smartQuotesType, InputDecoration? decoration, VoidCallback? onEditingComplete, Brightness? keyboardAppearance, EdgeInsets scrollPadding = const EdgeInsets.all(20.0), TextSelectionControls? selectionControls, ValueChanged<String> ? onSubmitted, ScrollController? scrollController, ScrollPhysics? scrollPhysics, Iterable<String> ? autofillHints = const <String>[], Clip clipBehavior = Clip.hardEdge, Widget? prefixIcon, Color? backgroundColor, BorderRadius? borderRadius, InputBorder? border, InputBorder? focusedBorder, InputBorder? enabledBorder, EdgeInsetsGeometry? contentPadding, TextStyle? labelStyle}) - Compact Text Field
-
NyTextField.emailAddress({Key? key, String? labelText, required TextEditingController controller, bool obscureText = false, bool autoFocus = true, TextInputType keyboardType = TextInputType.emailAddress, TextAlign? textAlign, int? maxLines = 1, dynamic handleValidationError(String handleError)?, int? minLines, bool enableSuggestions = true, String? hintText, TextStyle? hintStyle, FocusNode? focusNode, String? validationRules, String? dummyData, dynamic onChanged(String value)?, TextStyle? style, StrutStyle? strutStyle, TextInputAction? textInputAction, bool readOnly = false, bool? showCursor, int? maxLength, bool? enabled, DragStartBehavior dragStartBehavior = DragStartBehavior.start, double? cursorHeight, Radius? cursorRadius, Color? cursorColor, GestureTapCallback? onTap, TapRegionCallback? onTapOutside, String? validationErrorMessage, MouseCursor? mouseCursor, TextCapitalization textCapitalization = TextCapitalization.none, MaxLengthEnforcement? maxLengthEnforcement, double cursorWidth = 2.0, AppPrivateCommandCallback? onAppPrivateCommand, List<
TextInputFormatter> ? inputFormatters, bool expands = false, TextAlignVertical? textAlignVertical, TextDirection? textDirection, String obscuringCharacter = '•', bool autocorrect = true, SmartDashesType? smartDashesType, SmartQuotesType? smartQuotesType, InputDecoration? decoration, VoidCallback? onEditingComplete, Brightness? keyboardAppearance, EdgeInsets scrollPadding = const EdgeInsets.all(20.0), TextSelectionControls? selectionControls, ValueChanged<String> ? onSubmitted, ScrollController? scrollController, ScrollPhysics? scrollPhysics, Iterable<String> ? autofillHints = const <String>[], Clip clipBehavior = Clip.hardEdge, Widget? prefixIcon, Color? backgroundColor, BorderRadius? borderRadius, InputBorder? border, InputBorder? focusedBorder, InputBorder? enabledBorder, EdgeInsetsGeometry? contentPadding, TextStyle? labelStyle, bool? passwordVisible}) - Email Address Text Field
-
NyTextField.password({Key? key, bool? passwordVisible, String? labelText, required TextEditingController controller, bool obscureText = true, bool autoFocus = false, TextInputType keyboardType = TextInputType.text, TextAlign? textAlign, int? maxLines = 1, dynamic handleValidationError(String handleError)?, int? minLines, bool enableSuggestions = true, String? hintText, TextStyle? hintStyle, FocusNode? focusNode, String? validationRules, String? dummyData, dynamic onChanged(String value)?, TextStyle? style, StrutStyle? strutStyle, TextInputAction? textInputAction, bool readOnly = false, bool? showCursor, int? maxLength, bool? enabled, DragStartBehavior dragStartBehavior = DragStartBehavior.start, double? cursorHeight, Radius? cursorRadius, Color? cursorColor, GestureTapCallback? onTap, TapRegionCallback? onTapOutside, String? validationErrorMessage, MouseCursor? mouseCursor, TextCapitalization textCapitalization = TextCapitalization.none, MaxLengthEnforcement? maxLengthEnforcement, double cursorWidth = 2.0, AppPrivateCommandCallback? onAppPrivateCommand, List<
TextInputFormatter> ? inputFormatters, bool expands = false, TextAlignVertical? textAlignVertical, TextDirection? textDirection, String obscuringCharacter = '•', bool autocorrect = true, SmartDashesType? smartDashesType, SmartQuotesType? smartQuotesType, InputDecoration? decoration, VoidCallback? onEditingComplete, Brightness? keyboardAppearance, EdgeInsets scrollPadding = const EdgeInsets.all(20.0), TextSelectionControls? selectionControls, ValueChanged<String> ? onSubmitted, ScrollController? scrollController, ScrollPhysics? scrollPhysics, Iterable<String> ? autofillHints = const <String>[], Clip clipBehavior = Clip.hardEdge, Widget? prefixIcon, Color? backgroundColor, BorderRadius? borderRadius, InputBorder? border, InputBorder? focusedBorder, InputBorder? enabledBorder, EdgeInsetsGeometry? contentPadding, TextStyle? labelStyle}) - Password Text Field
Properties
- autocorrect → bool
-
final
-
autofillHints
→ Iterable<
String> ? -
final
- autoFocus → bool
-
final
- backgroundColor → Color?
-
final
- border → InputBorder?
-
final
- borderRadius → BorderRadius?
-
final
- clipBehavior → Clip
-
final
- contentPadding → EdgeInsetsGeometry?
-
final
- controller → TextEditingController
-
final
- cursorColor → Color?
-
final
- cursorHeight → double?
-
final
- cursorRadius → Radius?
-
final
- cursorWidth → double
-
final
- decoration → InputDecoration?
-
final
- dragStartBehavior → DragStartBehavior
-
final
- dummyData → String?
-
final
- enabled → bool?
-
final
- enabledBorder → InputBorder?
-
final
- enableSuggestions → bool
-
final
- expands → bool
-
final
- focusedBorder → InputBorder?
-
final
- focusNode → FocusNode?
-
final
- handleValidationError → (dynamic Function(String handleError)?)
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hintStyle → TextStyle?
-
final
- hintText → String?
-
final
-
inputFormatters
→ List<
TextInputFormatter> ? -
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardAppearance → Brightness?
-
final
- keyboardType → TextInputType
-
final
- labelStyle → TextStyle?
-
final
- labelText → String?
-
final
- maxLength → int?
-
final
- maxLengthEnforcement → MaxLengthEnforcement?
-
final
- maxLines → int?
-
final
- minLines → int?
-
final
- mouseCursor → MouseCursor?
-
final
- obscureText → bool
-
final
- obscuringCharacter → String
-
final
- onAppPrivateCommand → AppPrivateCommandCallback?
-
final
- onChanged → (dynamic Function(String value)?)
-
final
- onEditingComplete → VoidCallback?
-
final
-
onSubmitted
→ ValueChanged<
String> ? -
final
- onTap → GestureTapCallback?
-
final
- onTapOutside → TapRegionCallback?
-
final
- passwordVisible → bool?
-
final
- prefixIcon → Widget?
-
final
- readOnly → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollController → ScrollController?
-
final
- scrollPadding → EdgeInsets
-
final
- scrollPhysics → ScrollPhysics?
-
final
- selectionControls → TextSelectionControls?
-
final
- showCursor → bool?
-
final
- smartDashesType → SmartDashesType?
-
final
- smartQuotesType → SmartQuotesType?
-
final
- strutStyle → StrutStyle?
-
final
- style → TextStyle?
-
final
- textAlign → TextAlign?
-
final
- textAlignVertical → TextAlignVertical?
-
final
- textCapitalization → TextCapitalization
-
final
- textDirection → TextDirection?
-
final
- textInputAction → TextInputAction?
-
final
- type → String?
-
final
- validationErrorMessage → String?
-
final
- validationRules → String?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _NyTextFieldState -
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