Comms Buttons
Round buttons used for communication actions like call, video, mute, etc.
Figma Link
- Web Components
- Flutter
Web component not available yet
Demo
Widgetbook
Inheritance
Object
> DiagnosticableTree
> Widget
> StatefulWidget
Constructors
Constructs ZetaCommsButton
ZetaCommsButton.new({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 add ZetaCommsButton
ZetaCommsButton.add({Key? key, String? label, ZetaWidgetSize size = ZetaWidgetSize.medium, VoidCallback? onPressed, FocusNode? focusNode, String? semanticLabel})
Constructs answer call ZetaCommsButton
ZetaCommsButton.answer({Key? key, String? label, ZetaWidgetSize size = ZetaWidgetSize.medium, VoidCallback? onPressed, FocusNode? focusNode, String? semanticLabel})
Constructs hold ZetaCommsButton
ZetaCommsButton.hold({Key? key, String? label, ZetaWidgetSize size = ZetaWidgetSize.medium, ValueChanged<bool>? onToggle, String? toggledLabel, VoidCallback? onPressed, FocusNode? focusNode, String? semanticLabel})
Constructs mute ZetaCommsButton
ZetaCommsButton.mute({Key? key, String? label, ZetaWidgetSize size = ZetaWidgetSize.medium, ValueChanged<bool>? onToggle, String? toggledLabel, VoidCallback? onPressed, FocusNode? focusNode, String? semanticLabel})
Constructs record ZetaCommsButton
ZetaCommsButton.record({Key? key, String? label, ZetaWidgetSize size = ZetaWidgetSize.medium, ValueChanged<bool>? onToggle, String? toggledLabel, VoidCallback? onPressed, FocusNode? focusNode, String? semanticLabel})
Constructs reject call ZetaCommsButton
ZetaCommsButton.reject({Key? key, String? label, ZetaWidgetSize size = ZetaWidgetSize.medium, VoidCallback? onPressed, FocusNode? focusNode, String? semanticLabel})
Constructs security ZetaCommsButton
ZetaCommsButton.security({Key? key, String? label, ZetaWidgetSize size = ZetaWidgetSize.medium, VoidCallback? onPressed, FocusNode? focusNode, String? semanticLabel})
Constructs speaker ZetaCommsButton
ZetaCommsButton.speaker({Key? key, String? label, ZetaWidgetSize size = ZetaWidgetSize.medium, ValueChanged<bool>? onToggle, String? toggledLabel, VoidCallback? onPressed, FocusNode? focusNode, String? semanticLabel})
Constructs transfer ZetaCommsButton
ZetaCommsButton.transfer({Key? key, String? label, ZetaWidgetSize size = ZetaWidgetSize.medium, VoidCallback? onPressed, FocusNode? focusNode, String? semanticLabel})
Constructs video ZetaCommsButton
ZetaCommsButton.video({Key? key, String? label, ZetaWidgetSize size = ZetaWidgetSize.medium, ValueChanged<bool>? onToggle, String? toggledLabel, VoidCallback? onPressed, FocusNode? focusNode, String? semanticLabel})
Properties
Name | Description | Type | Features |
---|---|---|---|
focusNode | An optional focus node to use as the focus node for this widget. | FocusNode? | final |
hashCode | The hash code for this object. | int | no setter inherited |
icon | Icon of comms button. Goes in centre of button. | IconData? | final |
key | Controls how one widget replaces another widget in the tree. | Key? | final inherited |
label | Comms button label | String? | final |
onPressed | Called when the comms button is tapped or otherwise activated. | VoidCallback? | final |
onToggle | Called when the comms button is toggled. | ValueChanged<bool>? | final |
runtimeType | A representation of the runtime type of the object. | Type | no setter inherited |
semanticLabel | The semantic label of the comms button. | String? | final |
size | Size of the comms button. Defaults to ZetaWidgetSize.medium. | ZetaWidgetSize | final |
toggledIcon | Icon to display when the comms button is toggled. | IconData? | final |
toggledLabel | Label to display when the comms button is toggled. | String? | final |
toggledType | The coloring type of the comms button when toggled. | ZetaCommsButtonType? | final |
type | The coloring type of the comms button | ZetaCommsButtonType | final |