ThemedTextInput class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ThemedTextInput
Constructors
-
ThemedTextInput({Key? key, TextInputType keyboardType = TextInputType.text, String? labelText, Widget? label, bool disabled = false, String? placeholder, String? prefixText, IconData? prefixIcon, Widget? prefixWidget, VoidCallback? onPrefixTap, IconData? suffixIcon, String? suffixText, VoidCallback? onSuffixTap, VoidCallback? onTap, bool obscureText = false, TextEditingController? controller, void onChanged(String)?, String? value, List<
String> errors = const [], bool hideDetails = false, EdgeInsets? padding, bool dense = false, bool isRequired = false, FocusNode? focusNode, bool validator(String)?, VoidCallback? onSubmitted, bool readonly = false, List<TextInputFormatter> inputFormatters = const [], List<String> autofillHints = const [], double? borderRadius, int maxLines = 1, bool autocorrect = true, bool enableSuggestions = true, bool autofocus = false, Widget? suffixWidget, List<String> choices = const [], int maxChoicesToDisplay = 5, bool enableCombobox = false, String emptyChoicesText = "No choices", ThemedComboboxPosition position = ThemedComboboxPosition.below, TextStyle? textStyle}) -
ThemedTextInput is the constructor of the input.
Simplifies (I hope so) the creation of an input using the standard format of Layrz.
const
Properties
- autocorrect → bool
-
autocorrect is the state of the input for enabling autocorrect.
final
-
autofillHints
→ List<
String> -
autofillHints is the list of autofill hints of the input.
final
- autofocus → bool
-
autofocus is the state of the input to be autofocused.
final
- borderRadius → double?
-
autofocus is the state of the input being autofocus.
final
-
choices
→ List<
String> -
choices is the list of choices of the input. Only will affect if enableCombobox is true.
final
- controller → TextEditingController?
-
controller is the controller of the input.
final
- dense → bool
-
dense is the state of the input being dense.
final
- disabled → bool
-
disabled is the disabled state of the input.
final
- emptyChoicesText → String
-
emptyChoicesText is the text to display when the choices list is empty.
final
- enableCombobox → bool
-
enableCombobox is the state of the input to enable the combobox.
final
- enableSuggestions → bool
-
enableSuggestions is the state of the input to enable suggestions.
final
-
errors
→ List<
String> -
errors is the list of errors of the input.
final
- focusNode → FocusNode?
-
focusNode is the focus node of the input.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hideDetails → bool
-
hideDetails is the state of hiding the details of the input.
final
-
inputFormatters
→ List<
TextInputFormatter> -
inputFormatters is the list of input formatters of the input.
final
- isRequired → bool
-
isRequired is the state of the input being required.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardType → TextInputType
-
keyboardType is the type of the keyboard.
By default, it is TextInputType.text.
final
- label → Widget?
-
label is the label widget of the input. Avoid submit label and labelText at the same time.
final
- labelText → String?
-
labelText is the label text of the input. Avoid submit label and labelText at the same time.
final
- maxChoicesToDisplay → int
-
maxChoicesToDisplay is the maximum number of choices to display.
final
- maxLines → int
-
maxLines is the maximum number of lines of the input.
final
- obscureText → bool
-
obscureText is the state of the input being obscured.
final
- onChanged → (void Function(String)?)
-
onChanged is the callback function when the input is changed.
final
- onPrefixTap → VoidCallback?
-
onPrefixTap is the callback function when the prefix is tapped.
final
- onSubmitted → VoidCallback?
-
onSubmitted is the callback function when the input is submitted.
final
- onSuffixTap → VoidCallback?
-
onSuffixTap is the callback function when the suffix is tapped.
final
- onTap → VoidCallback?
-
onTap is the callback function when the input is tapped.
final
- padding → EdgeInsets?
-
padding is the padding of the input.
final
- placeholder → String?
-
placeholder is the placeholder of the input.
final
- position → ThemedComboboxPosition
-
position is the position of the combobox.
By default, it is ThemedComboboxPosition.below.
final
- prefixIcon → IconData?
-
prefixIcon is the prefix icon of the input. Avoid submit prefixIcon and prefixWidget at the same time.
final
- prefixText → String?
-
prefixText is the prefix text of the input.
final
- prefixWidget → Widget?
-
prefixWidget is the prefix widget of the input. Avoid submit prefixIcon and prefixWidget at the same time.
final
- readonly → bool
-
readonly is the state of the input being readonly.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- suffixIcon → IconData?
-
suffixIcon is the suffix icon of the input.
final
- suffixText → String?
-
suffixText is the suffix text of the input.
final
- suffixWidget → Widget?
-
suffixWidget is the widget of the suffix of the input.
final
- textStyle → TextStyle?
-
Styles of the text inside the input
final
- validator → (bool Function(String)?)
-
validator is the validator of the input.
final
- value → String?
-
value is the value of the input.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ThemedTextInput> -
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
- outerPadding → EdgeInsets
-
padding is the padding of the input.
no setter