DDSTextField class

Inheritance

Constructors

DDSTextField({Key? key, String label = '', String placeholder = '', String helperText = '', String errorMessage = '', Widget? startIcon, Widget? endIcon, double? height, double? width, double? labelRequiredStarGap, String? labelAdditionalText, TextStyle? labelAdditionalTextStyle, double? labelAdditionalTextGap = 8, Color? backgroundColor = Colors.transparent, double? horizontalIncrementHeight = 20, double? horizontalIncrementWidth = 160, double? verticalIncrementHeight = 120, double? verticalIncrementWidth = 80, TextFieldVariant variant = TextFieldVariant.basic, bool isPassword = false, bool isEnabled = true, bool readOnly = false, bool autocorrect = true, TextCapitalization textCapitalization = TextCapitalization.sentences, bool required = false, String? value, String? defaultValue, SpellCheckConfiguration? spellCheckConfiguration, bool enableSuggestions = true, TextEditingController? controller, GestureTapCallback? onTap, TapRegionCallback? onTapOutside, TextStyle? placeholderStyle, TextStyle? helperTextStyle, TextStyle? labelTextStyle, TextStyle? charCountTextStyle, TextFieldShape? shape = TextFieldShape.rectangle, TextInputType inputType = TextInputType.text, ValueChanged<String>? onChanged, TextStyle? style, Widget? incrementIcon, Widget? decrementIcon, VoidCallback? onIncrementClick, VoidCallback? onDecrementClick, List<CountryCodeData>? countryCodes = const [], FocusNode? focusNode, InputDecoration? decoration, dynamic onPhoneNumberChanged(String countryCode, String phoneNumber)?, int? maxCharacters, bool textWrap = false, int? minVisibleLines, int? maxVisibleLines, CharacterCountIndicatorPosition indicatorPosition = CharacterCountIndicatorPosition.outside, Color? visibilityIconColor, Color? focusedBorderColor, Color? textFieldBorderColor, EdgeInsets? padding, double? dropdownMenuWidth, double? borderRadius, double cursorWidth = 2.0, double? cursorHeight, Radius? cursorRadius, bool? cursorOpacityAnimates, double? horizontalIconPadding = 8.0, Color? cursorColor, Color? cursorErrorColor, bool autofocus = false, bool? showCursor, bool enableCustomSelection = false, Widget? customSelectionHandleWidget, Color? selectionHandleColor, Color? textSelectionColor, double flagWidth = 20.0, double flagHeight = 15.0, TextInputAction? textInputAction, ValueChanged<String>? onSubmitted, List<TextInputFormatter>? inputFormatters, bool showCharacterCount = true})
const

Properties

autocorrect → bool
final
autofocus → bool
final
backgroundColor → Color?
final
borderRadius → double?
final
charCountTextStyle → TextStyle?
final
controller → TextEditingController?
final
countryCodes → List<CountryCodeData>?
final
cursorColor → Color?
final
cursorErrorColor → Color?
final
cursorHeight → double?
final
cursorOpacityAnimates → bool?
final
cursorRadius → Radius?
final
cursorWidth → double
final
customSelectionHandleWidget → Widget?
final
decoration → InputDecoration?
final
decrementIcon → Widget?
final
defaultValue → String?
final
final
enableCustomSelection → bool
final
enableSuggestions → bool
final
endIcon → Widget?
final
errorMessage → String
final
flagHeight → double
final
flagWidth → double
final
focusedBorderColor → Color?
final
focusNode → FocusNode?
final
hashCode → int
The hash code for this object.
no setterinherited
height → double?
final
helperText → String
final
helperTextStyle → TextStyle?
final
horizontalIconPadding → double?
final
horizontalIncrementHeight → double?
final
horizontalIncrementWidth → double?
final
incrementIcon → Widget?
final
indicatorPosition → CharacterCountIndicatorPosition
final
inputFormatters → List<TextInputFormatter>?
final
inputType → TextInputType
final
isEnabled → bool
final
isPassword → bool
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → String
final
labelAdditionalText → String?
final
labelAdditionalTextGap → double?
final
labelAdditionalTextStyle → TextStyle?
final
labelRequiredStarGap → double?
final
labelTextStyle → TextStyle?
final
maxCharacters → int?
final
maxVisibleLines → int?
final
minVisibleLines → int?
final
onChanged → ValueChanged<String>?
final
onDecrementClick → VoidCallback?
final
onIncrementClick → VoidCallback?
final
onPhoneNumberChanged → dynamic Function(String countryCode, String phoneNumber)?
final
onSubmitted → ValueChanged<String>?
final
onTap → VoidCallback?
final
onTapOutside → TapRegionCallback?
final
padding → EdgeInsets?
final
placeholder → String
final
placeholderStyle → TextStyle?
final
readOnly → bool
final
required → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectionHandleColor → Color?
final
shape → TextFieldShape?
final
showCharacterCount → bool
final
showCursor → bool?
final
spellCheckConfiguration → SpellCheckConfiguration?
final
startIcon → Widget?
final
style → TextStyle?
final
textCapitalization → TextCapitalization
final
textFieldBorderColor → Color?
final
textInputAction → TextInputAction?
final
textSelectionColor → Color?
final
textWrap → bool
final
value → String?
final
variant → TextFieldVariant
final
verticalIncrementHeight → double?
final
verticalIncrementWidth → double?
final
visibilityIconColor → Color?
final
width → double?
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _DDSTextFieldState
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