ZetaSlidableAction class

Slidable action widget for ZetaChatItem.

Inheritance
Available Extensions

Constructors

ZetaSlidableAction({Key? key, VoidCallback? onPressed, required IconData icon, ZetaColorSwatch? color = ZetaColorBase.blue, Color? customForegroundColor, Color? customBackgroundColor, String? semanticLabel, bool paleColor = false})
Constructs a ZetaSlidableAction.
const
ZetaSlidableAction.call({Key? key, VoidCallback? onPressed, String? semanticLabel = 'Call', bool paleColor = false})
Constructs a Call ZetaSlidableAction.
const
ZetaSlidableAction.delete({Key? key, VoidCallback? onPressed, String? semanticLabel = 'Delete', bool paleColor = false})
Constructs a Delete ZetaSlidableAction.
const
ZetaSlidableAction.menuMore({Key? key, VoidCallback? onPressed, String? semanticLabel = 'More', bool paleColor = false})
Constructs a More menu ZetaSlidableAction.
const
ZetaSlidableAction.ptt({Key? key, VoidCallback? onPressed, String? semanticLabel = 'PTT', bool paleColor = false})
Constructs a PTT ZetaSlidableAction.
const

Properties

color ZetaColorSwatch?
Color swatch used for the action.
final
customBackgroundColor Color?
Background color of the action.
final
customForegroundColor Color?
Foreground color of the icon.
final
hashCode int
The hash code for this object.
no setterinherited
icon IconData
Icon to be displayed.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onPressed VoidCallback?
Callback to call when the action is pressed.
final
paleColor bool
Whether to apply pale color.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel String?
Semantic label for the action.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
copyWith({VoidCallback? onPressed, IconData? icon, Color? customForegroundColor, Color? customBackgroundColor, ZetaColorSwatch? color, String? semanticLabel, bool? paleColor}) ZetaSlidableAction
Creates a copy of this ZetaSlidableAction but with the given fields replaced with the new values.
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.
override
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