Comms Buttons
- Web Components
- Flutter
Web component not available yet
Demo
Comms button component.This component is used to display a button for communication action. Answer, reject, mute, hold, speaker, etc.
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 |
Methods
Name | Description | Type | Features |
---|---|---|---|
createElement() | Creates a StatefulElement to manage this widget's location in the tree. | StatefulElement | inherited |
createState() | Creates the mutable state for this widget at a given location in the tree. | State<ZetaCommsButton> | override |
debugDescribeChildren() | Returns a list of DiagnosticsNode objects describing this node's children. | List<DiagnosticsNode> | inherited |
debugFillProperties(DiagnosticPropertiesBuilder properties) | Add additional properties associated with the node. | void | override |
noSuchMethod(Invocation invocation) | Invoked when a nonexistent method or property is accessed. | dynamic | inherited |
paddingAll(double space) | Available on Widget, provided by the SpacingWidget extension | Widget | undefined |
paddingBottom(double space) | Available on Widget, provided by the SpacingWidget extension | Widget | undefined |
paddingEnd(double space) | Available on Widget, provided by the SpacingWidget extension | Widget | undefined |
paddingHorizontal(double space) | Available on Widget, provided by the SpacingWidget extension | Widget | undefined |
paddingStart(double space) | Available on Widget, provided by the SpacingWidget extension | Widget | undefined |
paddingTop(double space) | Available on Widget, provided by the SpacingWidget extension | Widget | undefined |
paddingVertical(double space) | Available on Widget, provided by the SpacingWidget extension | Widget | undefined |
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) | Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep. | DiagnosticsNode | inherited |
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) | A string representation of this object. | String | inherited |
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) | Returns a string representation of this node and its descendants. | String | inherited |
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) | Returns a one-line detailed description of the object. | String | inherited |
toStringShort() | A short, textual description of this widget. | String | inherited |
Figma