ItemTags constructor
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}
)
Implementation
ItemTags(
{@required this.index,
@required this.title,
this.textScaleFactor,
this.active = true,
this.pressEnabled = true,
this.customData,
this.textStyle = const TextStyle(fontSize: 14),
this.alignment = MainAxisAlignment.center,
this.combine = ItemTagsCombine.imageOrIconOrText,
this.icon,
this.image,
this.removeButton,
this.borderRadius,
this.border,
this.padding = const EdgeInsets.symmetric(horizontal: 7, vertical: 5),
this.elevation = 5,
this.singleItem = false,
this.textOverflow = TextOverflow.fade,
this.textColor = Colors.black,
this.textActiveColor = Colors.white,
this.color = Colors.white,
this.activeColor = Colors.blueGrey,
this.highlightColor,
this.splashColor,
this.colorShowDuplicate = Colors.red,
this.onPressed,
this.onLongPressed,
Key key})
: assert(index != null),
assert(title != null),
super(key: key);