FlutterInputChips class

FlutterInputChips is a Flutter widget that builds the input field with input chips options

Inheritance

Constructors

FlutterInputChips({Key? key, required ValueChanged<List<String>> onChanged, List<String> initialValue = const [], bool enabled = true, TextInputAction inputAction = TextInputAction.done, Brightness keyboardAppearance = Brightness.light, TextCapitalization textCapitalization = TextCapitalization.none, bool autofocus = false, InputDecoration inputDecoration = const InputDecoration(), TextOverflow textOverflow = TextOverflow.clip, TextInputType inputType = TextInputType.text, EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 16, vertical: 10), bool chipCanDelete = true, double chipSpacing = 5, int? maxChips, BoxDecoration? decoration, TextStyle? chipTextStyle, Color? chipBackgroundColor, Widget? chipDeleteIcon, Color? chipDeleteIconColor, InputChipsController? controller, VoidCallback? onMaxChipsReached})
const

Properties

autofocus → bool
autofocus the inout field
final
chipBackgroundColor → Color?
background color of the chip
final
chipCanDelete → bool
if true, displays a delete icon in the chip
final
chipDeleteIcon → Widget?
custom delete icon
final
chipDeleteIconColor → Color?
Color for delete icon in the chip
final
chipSpacing → double
spacing between chips
final
chipTextStyle → TextStyle?
style for chip text/label
final
controller → InputChipsController?
controller for the input field
final
decoration → BoxDecoration?
final
enabled → bool
enables the input field and chip delete ability
final
hashCode → int
The hash code for this object.
no setterinherited
initialValue → List<String>
list of Strings to prepopulated the chips with
final
inputAction → TextInputAction
inout field action
final
inputDecoration → InputDecoration
text input decoration
final
inputType → TextInputType
keyboard input type
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardAppearance → Brightness
keyboard appearance
final
maxChips → int?
number of maximum chips
final
onChanged → ValueChanged<List<String>>
returns a list of string on inout field submitted
final
onMaxChipsReached → VoidCallback?
callback when the maximum number of chips is reached
final
padding → EdgeInsets
parent container padding
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
textCapitalization → TextCapitalization
text capitalization type for the input field keyboard
final
textOverflow → TextOverflow
text overflow behavior
final

Methods

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