CometChatCallLogHistory
is a Widget that shows a paginated list of all the calls between the logged-in user & another user or group. This allows the user to see all the calls with a specific user/group they have initiated/received/missed.
CometChatCallLogHistory
widget is composed of the following BaseWidgets:
Widgets | Description |
---|---|
CometChatListBase | CometChatListBase is a container widget featuring a title, customizable background options, and a dedicated list widget for seamless integration within your application’s interface. |
CometChatListItem | This widget displays data retrieved from a CallLog object on a card, presenting a title and subtitle. |
CometChatCallLogHistory
is a Widget, it can be seamlessly presented within your application. To display the details of a CallLog, you simply need to pass the corresponding CallLog object to the CometChatCallLogHistory
instance using its setCallLog property. This enables you to efficiently showcase specific call log details within your application’s interface.
You can launch CometChatCallLogHistory
directly using Navigator.push
, or you can define it as a widget within the build
method of your State
class.
CometChatCallLogHistory
CometChatCallLogHistory
as a Widget in the build MethodonItemClick
functionality within CometChatCallLogHistory
, empowering them with greater control and customization options.
The onItemClick
action doesn’t have a predefined behavior. You can override this action using the following code snippet.
OnError
and improve error handling.
onBack
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.
The CometChatCallLogHistory
widget does not have any exposed events.
CallLogHistoryStyle
Widget by applying the CallLogHistoryStyle
to it using the following code snippet.
CallLogHistoryStyle
Property | Description | Code |
---|---|---|
width | The width of the call log history style. | double? width |
height | The height of the call log history style. | double? height |
background | The background color. | Color? background |
border | The border of the call log history style. | BoxBorder? border |
borderRadius | The border radius. | double? borderRadius |
gradient | The gradient background. | Gradient? gradient |
titleStyle | The style for the title text. | TextStyle? titleStyle |
dividerTint | The tint color for the divider. | Color? dividerTint |
emptyTextStyle | The style for the empty text. | TextStyle? emptyTextStyle |
errorTextStyle | The style for the error text. | TextStyle? errorTextStyle |
loadingIconTint | The tint color for the loading icon. | Color? loadingIconTint |
backIconTint | The tint color for the back icon. | Color? backIconTint |
durationTextStyle | The style for the duration text. | TextStyle? durationTextStyle |
statusTextStyle | The style for the status text. | TextStyle? statusTextStyle |
dateTextStyle | The style for the date text. | TextStyle? dateTextStyle |
CometChatCallLogHistory
Property | Description | Code |
---|---|---|
callUser | The user associated with the call logs. | dynamic callUser |
callGroup | The group associated with the call logs. | dynamic callGroup |
title | The title of the call log history. | String? title |
backButton | The custom back button widget. | Widget? backButton |
showBackButton | Flag to show or hide the back button. | bool? showBackButton |
emptyStateText | The text to display when the list is empty. | String? emptyStateText |
errorStateText | The text to display when there is an error. | String? errorStateText |
loadingIconUrl | The URL for the loading icon. | String? loadingIconUrl |
theme | The theme of the call log history. | ThemeData? theme |
timePattern | The pattern for displaying time. | String? timePattern |
dateSeparatorPattern | The pattern for displaying date separators. | String? dateSeparatorPattern |
hideSeparator | Flag to show or hide the separator. | bool hideSeparator = true |
CometChatCallLogHistory
Widget.
CometChatGroupMembers
widget. You can add a Tail widget using the following method.
loadingStateView
to match the loading UI of your app.
emptyStateView
to match the empty widget of your app.
errorStateView
to match the error widget of your app.
Configurations
expose properties that are available in its individual widgets.CallLogDetailsConfiguration
. You can accomplish this by employing the callLogDetailConfiguration
method as demonstrated below: