ChipInputTextField<T> class
A text field that allows users to input chips based on validation provided .
This widget provides allowing users to enter items and see suggestions as they type.
Example usage: ChipInputTextField
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ChipInputTextField
Constructors
-
ChipInputTextField.new({Key? key, bool showSuggestions = false, List<
T> initialValue = const [], InputDecoration decoration = const InputDecoration(), bool enabled = true, TextStyle? textStyle, double? suggestionsBoxMaxHeight, TextInputType inputType = TextInputType.emailAddress, TextOverflow textOverflow = TextOverflow.clip, bool obscureText = false, bool autocorrect = true, int elevation = 5, Color backgroundColor = Colors.white, Color borderColor = Colors.blue, double borderWidth = 0.0, TextInputAction inputAction = TextInputAction.done, bool autofocus = false, bool allowChipEditing = false, FocusNode? focusNode, List<T> ? frequentSuggestions, int maxLines = 5, required ValueChanged<String> ? onChange, required InputSuggestions<T> suggestionFinder, required ChipsBuilder<T> chipBuilder, required SuggestionBuilder<T> suggestionBuilder, required ValidationCallBack<T> validate}) - Creates a ChipInputTextField.
Properties
- allowChipEditing → bool
-
final
- autocorrect → bool
-
final
- autofocus → bool
-
final
- backgroundColor → Color
-
final
- borderColor → Color
-
final
- borderWidth → double
-
final
-
chipBuilder
→ ChipsBuilder<
T> -
final
- count → int
-
final
- decoration → InputDecoration
-
final
- defaultContentPadding → EdgeInsets
-
Default padding for the content of the text field.
final
- elevation → int
-
final
- enabled → bool
-
final
- focusNode → FocusNode?
-
final
-
frequentSuggestions
→ List<
T> ? -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
initialValue
→ List<
T> -
final
- inputAction → TextInputAction
-
final
- inputType → TextInputType
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maxLines → int
-
final
- obscureText → bool
-
final
-
onChange
→ ValueChanged<
String> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showSuggestions → bool
-
final
-
suggestionBuilder
→ SuggestionBuilder<
T> -
final
-
suggestionFinder
→ InputSuggestions<
T> -
final
- suggestionsBoxMaxHeight → double?
-
final
- textOverflow → TextOverflow
-
final
- textStyle → TextStyle?
-
final
-
validate
→ ValidationCallBack<
T> -
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → ChipInputTextFieldState -
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