ItemTags class

Inheritance

Constructors

ItemTags({@required int index, @required String title, double textScaleFactor, bool active = true, bool pressEnabled = true, dynamic customData, TextStyle textStyle = const TextStyle(fontSize: 14), MainAxisAlignment alignment = MainAxisAlignment.center, ItemTagsCombine combine = ItemTagsCombine.imageOrIconOrText, ItemTagsIcon icon, ItemTagsImage image, ItemTagsRemoveButton removeButton, BorderRadius borderRadius, BoxBorder border, EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 7, vertical: 5), double elevation = 5, bool singleItem = false, TextOverflow textOverflow = TextOverflow.fade, Color textColor = Colors.black, Color textActiveColor = Colors.white, Color color = Colors.white, Color activeColor = Colors.blueGrey, Color highlightColor, Color splashColor, Color colorShowDuplicate = Colors.red, OnPressedCallback onPressed, OnLongPressedCallback onLongPressed, Key key})

Properties

active bool
Initial bool value
final
activeColor Color
background color ItemTags activated
final
alignment MainAxisAlignment
TextStyle of the ItemTags
final
border BoxBorder
custom border-side of ItemTags
final
borderRadius BorderRadius
border-radius of ItemTags
final
color Color
background color ItemTags
final
colorShowDuplicate Color
Color show duplicate ItemTags
final
combine ItemTagsCombine
ItemTagsCombine (text,icon,textIcon,textImage) of ItemTags
final
customData → dynamic
Possibility to add any custom value in customData field, you can retrieve this later. A good example: store an id from Firestore document.
final
elevation double
BoxShadow of the ItemTags
final
hashCode int
The hash code for this object.
@nonVirtualread-onlyinherited
highlightColor Color
highlight Color ItemTags
final
icon ItemTagsIcon
Icon of ItemTags
final
image ItemTagsImage
Image of ItemTags
final
index int
Id of ItemTags - required
final
key Key
Controls how one widget replaces another widget in the tree.
finalinherited
onLongPressed OnLongPressedCallback
callback
final
onPressed OnPressedCallback
callback
final
padding EdgeInsets
padding of the ItemTags
final
pressEnabled bool
Initial bool value
final
removeButton ItemTagsRemoveButton
Custom Remove Button of ItemTags
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
singleItem bool
when you want only one tag selected. same radio-button
final
splashColor Color
Splash color ItemTags
final
textActiveColor Color
color of the ItemTags text activated
final
textColor Color
text color of the ItemTags
final
textOverflow TextOverflow
type of text overflow within the ItemTags
final
textScaleFactor double
Scale Factor of ItemTags - double
final
textStyle TextStyle
TextStyle of the ItemTags
final
title String
Title of ItemTags - required
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _ItemTagsState
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.
@protectedinherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.
@nonVirtualinherited