CometChatCallButtons
is a Widget provides users with the ability to make calls, access call-related functionalities, and control call settings. Clicking this button typically triggers the call to be placed to the desired recipient.
CometChatCallButtons
directly using Navigator.push
, or you can define it as a widget within the build
method of your State
class.
CometChatCallButtons
CometChatCallButtons
as a Widget in the build MethodonVoiceCallClick
action is usually invoked when a voice call is initiated, executing predefined actions. However, by utilizing the provided code snippet, you can effortlessly tailor or override this default behavior to suit your unique requirements.
onVideoCallClick
action is typically triggered when a video call is initiated, executing default actions. However, with the provided code snippet, you have the flexibility to easily customize or override this default behavior according to your specific preferences or requirements.
onError
and improve error handling.
Widget
. By using event you can extend existing functionality. Being global events, they can be applied in Multiple Locations and are capable of being Added or Removed.
Events emitted by the Call buttons widget are as follows.
Event | Description |
---|---|
ccCallAccepted | Triggers when the outgoing call is accepted. |
ccCallRejected | Triggers when the outgoing call is rejected. |
CometChatCallButtons
Widget by applying the CallButtonsStyle
to it using the following code snippet.
CallButtonsStyle
Property | Description | Code |
---|---|---|
Background | Sets the background color of the call buttons style. | background: Color? |
Border | Sets the border properties of the call buttons style. | border: BoxBorder? |
Border Radius | Sets the border radius of the call buttons style. | borderRadius: double? |
Gradient | Sets the gradient applied to the call buttons style. | gradient: Gradient? |
Height | Sets the height of the call buttons style. | height: double? |
Video Call Icon Tint | Sets the color for the video call icon. | videoCallIconTint: Color? |
Voice Call Icon Tint | Sets the color for the voice call icon. | voiceCallIconTint: Color? |
Width | Sets the width of the call buttons style. | width: double? |
Property | Description | Code |
---|---|---|
Hide Video Call | Hides the video call button. | hideVideoCall: bool? |
Hide Voice Call | Hides the voice call button. | hideVoiceCall: bool? |
Video Call Icon | Sets the icon for the video call button. | videoCallIcon: Icon? |
Video Call Icon Hover Text | Sets the hover text for the video call button. | videoCallIconHoverText: String? |
Video Call Icon Text | Sets the text for the video call button. | videoCallIconText: String? |
Voice Call Icon | Sets the icon for the voice call button. | voiceCallIcon: Icon? |
Voice Call Icon Hover Text | Sets the hover text for the voice call button. | voiceCallIconHoverText: String? |
Voice Call Icon Text | Sets the text for the voice call button. | voiceCallIconText: String? |
CometChatCallButtons
widget does not provide additional functionalities beyond this level of customization.