LuckyTextField class

A widget that displays a text field.

Inheritance

Constructors

LuckyTextField({Key? key, required TextEditingController controller, String heading = "", String? title, String? subtitle, String description = "", String hintText = "", LuckyTextFieldStyleEnum style = LuckyTextFieldStyleEnum.standard, IconData? icon, FocusNode? focusNode, TextCapitalization textCapitalization = TextCapitalization.none, TextInputAction textInputAction = TextInputAction.done, TextInputType keyboardType = TextInputType.text, int? maxTextLength, int? maxLines, bool readOnly = false, bool enabled = true, bool autocorrect = true, VoidCallback? onTap, ValueChanged<String>? onFieldSubmitted, ValueChanged<String>? onChanged, String? errorText, int? errorMaxLines = 2, TextAlign textAlign = TextAlign.start, List<TextInputFormatter>? inputFormatters})
Creates a new LuckyTextField widget.
const

Properties

autocorrect bool
Whether autocorrect is enabled.
final
controller TextEditingController
The controller of the text field.
final
description String
The description to display in the text field.
final
enabled bool
Whether the text field is enabled.
final
errorMaxLines int?
The maximum lines for the error text.
final
errorText String?
The error text to display below the text field.
final
focusNode FocusNode?
The focus node of the text field.
final
hashCode int
The hash code for this object.
no setterinherited
heading String
The heading to display in the text field (alias: title).
final
hintText String
The hint text to display in the text field.
final
icon IconData?
The icon to display before the title.
final
inputFormatters List<TextInputFormatter>?
The input formatters of the text field.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType TextInputType
The keyboard type of the text field.
final
maxLines int?
The maximum lines of the text field.
final
maxTextLength int?
The maximum text length of the text field.
final
onChanged ValueChanged<String>?
The callback to be called when the text field changes.
final
onFieldSubmitted ValueChanged<String>?
The callback to be called when the text field is submitted.
final
onTap VoidCallback?
The callback to be called when the text field is tapped.
final
readOnly bool
Whether the text field is read only.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style LuckyTextFieldStyleEnum
The style of the text field.
final
subtitle String?
The subtitle to display below the title.
final
textAlign TextAlign
The text alignment of the text field.
final
textCapitalization TextCapitalization
The text capitalization of the text field.
final
textInputAction TextInputAction
The text input action of the text field.
final
title String?
Alias for heading - the title to display.
final

Methods

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