S2TileChips class

Chips tile/trigger widget

Inheritance

Constructors

S2TileChips({Key key, @required int chipLength, @required IndexedWidgetBuilder chipLabelBuilder, IndexedWidgetBuilder chipAvatarBuilder, IndexedWidgetBuilder chipBuilder, ValueChanged<int> chipOnDelete, Color chipColor, bool chipOutlined = false, bool chipRaised = false, double chipOpacity, Icon chipDeleteIcon, double chipSpacing, double chipRunSpacing, ShapeBorder chipShape, TextStyle chipLabelStyle, double chipElevation = 1, Widget placeholder, bool scrollable = false, EdgeInsetsGeometry padding})
Create a chips tile/trigger widget

Properties

chipAvatarBuilder IndexedWidgetBuilder
Widget builder for chip avatar item
final
chipBuilder IndexedWidgetBuilder
Widget builder for chip item
final
chipColor Color
The primary color of the chip item
final
chipDeleteIcon Icon
The icon of the delete button
final
chipElevation double
The elevation of the chip widget
final
chipLabelBuilder IndexedWidgetBuilder
Widget builder for chip label item
final
chipLabelStyle TextStyle
The TextStyle of the chip label
final
chipLength int
List of value of the selected choices.
final
chipOnDelete ValueChanged<int>
Called when the user delete the chip item.
final
chipOpacity double
If chipOutlined is true this value becomes the border opacity, If chipOutlined is false this value becomes the background opacity
final
chipOutlined bool
Whether the chip is outlined or not
final
chipRaised bool
Whether the chip is raised or not
final
chipRunSpacing double
Chip run spacing
final
chipShape ShapeBorder
Chip shape border
final
chipSpacing double
Chip spacing
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
padding EdgeInsetsGeometry
Chip list padding
final
placeholder Widget
The Widget displayed when the values is null
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollable bool
Whether the chip list is scrollable or not
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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

defaultPlaceholder Widget
default placeholder
final

Constants

defaultPadding → const EdgeInsetsGeometry
default padding