ZetaCommsButton class Components

Comms button component. This component is used to display a button for communication action. Answer, reject, mute, hold, speaker, etc.

Use the constructors to create preconfigured comms buttons.

ZetaCommsButton.answer(), ZetaCommsButton.reject(), ZetaCommsButton.mute(), ZetaCommsButton.hold(), ZetaCommsButton.speaker(), ZetaCommsButton.record(), etc.

Figma: https://www.figma.com/design/JesXQFLaPJLc1BdBM4sisI/%F0%9F%A6%93-ZDS---Components?node-id=20816-7765&node-type=canvas&t=nc1YR061CeZRr6IJ-0

Widgetbook: https://zeta-ds.web.app/flutter/widgetbook/index.html#/?path=components/comms-button

Inheritance
Available Extensions

Constructors

ZetaCommsButton({Key? key, String? label, ZetaCommsButtonType type = ZetaCommsButtonType.on, ZetaWidgetSize size = ZetaWidgetSize.medium, IconData? icon, ValueChanged<bool>? onToggle, IconData? toggledIcon, String? toggledLabel, ZetaCommsButtonType? toggledType, VoidCallback? onPressed, FocusNode? focusNode, String? semanticLabel})
Constructs ZetaCommsButton
const
ZetaCommsButton.add({Key? key, String? label, ZetaWidgetSize size = ZetaWidgetSize.medium, VoidCallback? onPressed, FocusNode? focusNode, String? semanticLabel})
Constructs add ZetaCommsButton
const
ZetaCommsButton.answer({Key? key, String? label, ZetaWidgetSize size = ZetaWidgetSize.medium, VoidCallback? onPressed, FocusNode? focusNode, String? semanticLabel})
Constructs answer call ZetaCommsButton
const
ZetaCommsButton.hold({Key? key, String? label, ZetaWidgetSize size = ZetaWidgetSize.medium, ValueChanged<bool>? onToggle, String? toggledLabel, VoidCallback? onPressed, FocusNode? focusNode, String? semanticLabel})
Constructs hold ZetaCommsButton
const
ZetaCommsButton.mute({Key? key, String? label, ZetaWidgetSize size = ZetaWidgetSize.medium, ValueChanged<bool>? onToggle, String? toggledLabel, VoidCallback? onPressed, FocusNode? focusNode, String? semanticLabel})
Constructs mute ZetaCommsButton
const
ZetaCommsButton.record({Key? key, String? label, ZetaWidgetSize size = ZetaWidgetSize.medium, ValueChanged<bool>? onToggle, String? toggledLabel, VoidCallback? onPressed, FocusNode? focusNode, String? semanticLabel})
Constructs record ZetaCommsButton
const
ZetaCommsButton.reject({Key? key, String? label, ZetaWidgetSize size = ZetaWidgetSize.medium, VoidCallback? onPressed, FocusNode? focusNode, String? semanticLabel})
Constructs reject call ZetaCommsButton
const
ZetaCommsButton.security({Key? key, String? label, ZetaWidgetSize size = ZetaWidgetSize.medium, VoidCallback? onPressed, FocusNode? focusNode, String? semanticLabel})
Constructs security ZetaCommsButton
const
ZetaCommsButton.speaker({Key? key, String? label, ZetaWidgetSize size = ZetaWidgetSize.medium, ValueChanged<bool>? onToggle, String? toggledLabel, VoidCallback? onPressed, FocusNode? focusNode, String? semanticLabel})
Constructs speaker ZetaCommsButton
const
ZetaCommsButton.transfer({Key? key, String? label, ZetaWidgetSize size = ZetaWidgetSize.medium, VoidCallback? onPressed, FocusNode? focusNode, String? semanticLabel})
Constructs transfer ZetaCommsButton
const
ZetaCommsButton.video({Key? key, String? label, ZetaWidgetSize size = ZetaWidgetSize.medium, ValueChanged<bool>? onToggle, String? toggledLabel, VoidCallback? onPressed, FocusNode? focusNode, String? semanticLabel})
Constructs video ZetaCommsButton
const

Properties

focusNode FocusNode?
An optional focus node to use as the focus node for this widget.
final
hashCode int
The hash code for this object.
no setterinherited
icon IconData?
Icon of comms button. Goes in centre of button.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label String?
Comms button label
final
onPressed VoidCallback?
Called when the comms button is tapped or otherwise activated.
final
onToggle ValueChanged<bool>?
Called when the comms button is toggled. If null, the comms button will not be toggleable.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel String?
The semantic label of the comms button.
final
size ZetaWidgetSize
Size of the comms button. Defaults to ZetaWidgetSize.medium.
final
toggledIcon IconData?
Icon to display when the comms button is toggled.
final
toggledLabel String?
Label to display when the comms button is toggled. If null, the label will be used instead. If both label and toggledLabel are null, the comms button will not display a label.
final
toggledType ZetaCommsButtonType?
The coloring type of the comms button when toggled. Defaults to ZetaCommsButtonType.on.
final
type ZetaCommsButtonType
The coloring type of the comms button
final

Methods

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