CometChatMessageInformation
is a Widget designed to display message-related information, such as delivery and read receipts. It serves as an integral part of the CometChat UI UI Kit, extending the ListBase class, which provides the underlying infrastructure for CometChat UI widgets. With its rich set of methods and properties, developers can easily customize and tailor the appearance and behavior of the message information widget to suit the specific requirements of their application.
CometChatMessageInformation
is comprised of the following Base Widgets:
Base Widgets | Description |
---|---|
List Base | This renders common widgets used across Conversations , Groups & Users . |
CometChatMessageInformation
directly using Navigator.push
, or you can define it as a widget within the build
method of your State
class.
CometChatMessageInformation
CometChatMessageInformation
as a Widget in the build MethodonClose
event is typically triggered when the back button is pressed and it carries a default action. However, with the following code snippet, you can effortlessly override this default operation.
CometChatMessageInformation
widget does not have any available filters.
CometChatMessageInformation
widget does not have any available events.
CometChatMessageInformation
widget. We provide exposed methods that allow you to modify the experience and behavior according to your specific needs.
MessageInformationStyle
to the CometChatMessageInformation
Widget using the messageInformationStyle
method.
MessageInformationStyle
:
Property | Description | Code |
---|---|---|
Background | Sets the background color of the message information. | background: Color? |
Border | Sets the border properties of the message information. | border: Border? |
Border Radius | Sets the border radius of the message information. | borderRadius: BorderRadius? |
Close Icon Tint | Sets the tint color for the close icon. | closeIconTint: Color? |
Delivered Icon Tint | Sets the tint color for the delivered icon. | deliveredIconTint: Color? |
Divider Tint | Sets the tint color for the divider. | dividerTint: Color? |
Empty Text Style | Sets the text style for the empty state message. | emptyTextStyle: TextStyle? |
Error Text Style | Sets the text style for error messages. | errorTextStyle: TextStyle? |
Gradient | Sets the gradient applied to the message information. | gradient: Gradient? |
Height | Sets the height of the message information. | height: double? |
Loading Icon Tint | Sets the tint color for the loading icon. | loadingIconTint: Color? |
Read Icon Tint | Sets the tint color for the read icon. | readIconTint: Color? |
Sub Title Style | Sets the text style for the subtitle. | subTitleStyle: TextStyle? |
Title Style | Sets the text style for the title. | titleStyle: TextStyle? |
Width | Sets the width of the message information. | width: double? |
ListItemStyle
widget in the CometChatMessageInformation
Widget, you can use the following code snippet. For more information, visit List Item Styles.
Property | Description | Code |
---|---|---|
Close Icon | Sets the icon for closing the message information. | closeIcon: Icon? |
Empty State Text | Sets the text for the empty state. | emptyStateText: String? |
Error State Text | Sets the text for the error state. | errorStateText: String? |
Loading Icon Url | Sets the URL for the loading icon. | loadingIconUrl: String? |
Read Icon | Sets the icon for read receipts. | readIcon: Icon? |
Receipt Date Pattern | Sets the date pattern for the receipt timestamp. | receiptDatePattern: String? |
Title | Sets the title for the message information. | title: String? |
Delivered Icon | Sets the icon for delivered receipts. | deliveredIcon: Icon? |
CometChatMessageInformation
Widget.