CometChatGroupsWithMessages
is a Composite Widget encapsulating functionalities from the Groups and Messages widgets. Serving as a versatile wrapper, it seamlessly integrates with CometChatMessages
, enabling users to open the module by clicking on any group within the list. This widget inherits the behavior of Groups, fostering consistency and familiarity in user interactions.
Widgets | Description |
---|---|
Groups | The Groups widget is designed to display a list of Groups . This essentially represents the recent conversation history. |
Messages | The Messages widget is designed to manage the messaging interaction for Group's conversations. |
CometChatGroupsWithMessages
is a widget, it can be effortlessly added directly in response to a button click or any event. Leveraging all the customizable properties and methods inherited from Groups, this widget offers seamless integration and extensive customization capabilities. This makes it a versatile solution for enhancing user interaction within your application.
You can launch CometChatGroupsWithMessages
directly using Navigator.push
, or you can define it as a widget within the build
method of your State
class.
CometChatGroupsWithMessages
CometChatGroupsWithMessages
as a Widget in the build MethodCometChatGroupsWithMessages
, empowering them with greater control and customization options.
The onItemTap
action doesn’t have a predefined behavior. You can override this action using the following code snippet.
onBack
feature. This capability allows you to customize the behavior associated with navigating back within your app. Utilize the provided code snippet to override default behaviors and tailor the user experience according to your specific requirements.
onError
and improve error handling.
CometChatGroupsWithMessages
, offering them enhanced control and flexibility in their interactions.
The onItemLongPress
action doesn’t have a predefined behavior. You can override this action using the following code snippet.
CometChatGroupsWithMessages
widget does not have filters, its widgets do, For more detail on individual filters of its widget refer to Groups Filters and Messages Filters.
By utilizing the Configurations object of its widgets, you can apply filters.
In the following example, we are applying a filter to the Group List based on only joined groups and setting the limit to 3 using the groupsRequestBuilder
.
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 CometChatGroupsWithMessages
does not produce any events but its subwidget does.
CometChatGroupsWithMessages
widget. We provide exposed methods that allow you to modify the experience and behavior according to your specific needs.
groupsWithMessagesStyle
to the CometChatGroupsWithMessages
Widget to customize the styling.
CometChatGroupsWithMessages
widget does not have any available functionality. You can use Functional customisation its Widgets. For more details on individual widget functionalities, you can refer Groups Functionalities and Messages functionalities.
CometChatGroupsWithMessages
widget does not have any advanced-level customization . You can use Advanced customisation its Widgets. For more details on individual widget functionalities, you can refer Groups Advanced and Messages Advanced.
CometChatGroupsWithMessages
uses advanced-level customization of both Groups & Messages widgets to achieve its default behavior.
CometChatGroupsWithMessages
item to meet your requirements
CometChatGroupsWithMessages
widget.
Groups
and Messages
widget. Hence, each of these widgets will have its individual Configuration
. Configurations
expose properties that are available in its individual widgets.
GroupsConfiguration
can be found under Groups. Properties marked with the 🛑 symbol are not accessible within the Configuration Object.
Example
Let’s say you want to change the style of the Groups sub widget
You can modify the style using the GroupsStyle
method.
messagesConfiguration
. You can accomplish this by employing the messagesConfiguration
as demonstrated below:
MessagesConfiguration
can be found under Messages. Properties marked with the 🛑 symbol are not accessible within the Configuration Object.
Example
Let’s say you want to change the style of the Messages sub widget and, in addition, you want to hide message composer.
You can modify the style using the messagesStyle
method and hide using hideMessageComposer
method.
JoinProtectedGroupConfiguration
class as demonstrated below:
JoinProtectedGroupConfiguration
can be found under Join Group. Properties marked with the report symbol are not accessible within the Configuration Object.
Example
Let’s say you want to change the style of the Join Group sub widget.
You can modify the style using the JoinProtectedGroupStyle
property.
createGroupConfiguration
props as demonstrated below:
CreateGroupConfiguration
can be found under Create Group. Properties marked with the 🛑 symbol are not accessible within the Configuration Object.
Example
Let’s say you want to change the style of the Create Group sub widget.
You can modify the style using the createGroupStyle
property.