CometChatCreateGroup
serves as a versatile Widget, empowering users to create diverse group types, encompassing public, private, and password-protected options. This functionality grants users the flexibility to tailor their group settings to suit their preferences and requirements.
CometChatCreateGroup
widget is composed of the following Base Widget:
Widgets | Description |
---|---|
CometChatListBase | CometChatListBase serves as a comprehensive container widget, encompassing essential elements such as a title (navigationBar), search functionality (search-bar), background, and a container to embed a list widget. This design provides a cohesive and intuitive user experience, facilitating seamless navigation and interaction within the widget. |
CometChatCreateGroup
, as a is a Composite Widget, offers flexible integration options, allowing it to be launched directly via button clicks or any user-triggered action. Additionally, it seamlessly integrates into activities and fragments. With CometChatCreateGroup
, users gain access to a wide range of parameters and methods for effortless customization of its user interface.
You can launch CometChatCreateGroup
directly using Navigator.push
, or you can define it as a widget within the build
method of your State
class.
CometChatCreateGroup
CometChatCreateGroup
as a Widget in the build MethodonCreateTap
action is activated when you click the create Group button. This returns the created groups.
You can override this action using the following code snippet.
On Error
and improve error handling.
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.
Widget
. You can filter the list based on your specific criteria, allowing for a more customized. Filters can be applied using RequestBuilders
of Chat SDK.
The CreateGroup
widget does not have any exposed filters.
Events are emitted by a Widget
. By using CometChatGroupEvents 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 Create Group widget is as follows.
Event | Description |
---|---|
ccGroupCreated(Group group) | This event will be triggered when the logged-in user initiates the creation of a group. |
CreateGroupStyle
to the CometChatCreateGroup
Widget to customize the styling.
Property | Description | Code |
---|---|---|
Border Color | Provides color to border | borderColor: Color? |
Close Icon Tint | Provides color to back icon | closeIconTint: Color? |
Create Icon Tint | Provides color to create icon | createIconTint: Color? |
Name Input Text Style | Provides styling for the text in the name input field | nameInputTextStyle: TextStyle? |
Name Placeholder Text Style | Provides styling for the hint text in the name text input field | namePlaceholderTextStyle: TextStyle? |
Password Input Text Style | Provides styling for the text in the password input field | passwordInputTextStyle: TextStyle? |
Password Placeholder Text Style | Provides styling for the hint text in the password text input field | passwordPlaceholderTextStyle: TextStyle? |
Selected Tab Color | Provides color to the active/selected tab | selectedTabColor: Color? |
Selected Tab Text Style | Provides styling for the text in the active/selected tab | selectedTabTextStyle: TextStyle? |
Tab Color | Provides color to the inactive/unselected tabs | tabColor: Color? |
Tab Text Style | Provides styling for the text in the inactive/unselected tab | tabTextStyle: TextStyle? |
Title Text Style | Provides styling for title text | titleTextStyle: TextStyle? |
CometChatCreateGroup
Property | Description | Code |
---|---|---|
Close Icon | Used to set back button icon | closeIcon: Widget? |
Create Icon | Used to set create group icon | createIcon: Widget? |
Disable Close Button | Used to toggle visibility for back button | disableCloseButton: bool? |
Name Placeholder Text | Used to customize the hint text for the name input field in protected group form | namePlaceholderText: String? |
Password Placeholder Text | Used to customize the hint text for the password input field in protected group form | passwordPlaceholderText: String? |
Theme | Used to set the theme of the widget | theme: CometChatTheme? |
Title | Used to set title | title: String? |
CometChatCreateGroup
widget does not provide additional functionalities beyond this level of customization.