CometChatJoinProtectedGroup
is a Widget used to set up a screen that shows the functionality to join a password protected group, featuring the functionality to join a password-protected group, where users can join a single password-protected group at a time.
CometChatJoinProtectedGroup
widget is composed of the following Base Widgets:
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. |
CometChatJoinProtectedGroup
, as 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 tab widget controllers. With join group, users gain access to a wide range of parameters and methods for effortless customization of its user interface.
You can launch CometChatJoinProtectedGroup
directly using Navigator.push
, or you can define it as a widget within the build
method of your State
class.
CometChatJoinProtectedGroup
CometChatJoinProtectedGroup
as a Widget in the build MethodonJoinTap
action is activated when you click the join Group button. This returns the join groups.
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.
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 CometChatJoinProtectedGroup
widget does not have any exposed filters.
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 Join Group widget is as follows.
Event | Description |
---|---|
ccGroupMemberJoined | Triggers when the user joined a protected group successfully |
JoinProtectedGroupStyle
to the CometChatJoinProtectedGroup
Widget to customize the styling.
Property | Description | Code |
---|---|---|
Background | Background value | background: Color? |
Border | Border value | border: Border? |
Border Radius | Border Radius value | borderRadius: BorderRadius? |
Border Width | Border Width value | border: Border? |
Close Icon Tint | Close Icon Tint value | closeIconTint: Color? |
Description Text Style | Description Text Style value | descriptionTextStyle: TextStyle? |
Error Text Style | Error Text Style value | errorTextStyle: TextStyle? |
Gradient | Gradient value | gradient: Gradient? |
Height | Height value | height: double? |
Input Border Color | Input Border Color value | inputBorderColor: Color? |
Join Icon Tint | Join Icon Tint value | joinIconTint: Color? |
Password Input Text Style | Password Input Text Style value | passwordInputTextStyle: TextStyle? |
Password Placeholder Style | Password Placeholder Style value | passwordPlaceholderStyle: TextStyle? |
Title Style | Title Style value | titleStyle: TextStyle? |
Width | Width value | width: double? |
CometChatJoinProtectedGroup
class.
Property | Description | Code |
---|---|---|
Border Width | Sets the width of the border. | borderWidth: double? |
Close Icon | Replaces the default back button with a custom widget. | closeIcon: Widget? |
Description | Sets the description text displayed below the title. | description: String? |
Error State Text | Sets the text displayed when an error occurs. | errorStateText: String? |
Join Icon | Replaces the default join icon with a custom widget. | joinIcon: Widget? |
Password Placeholder Text | Sets the placeholder text for the password input field. | passwordPlaceholderText: String? |
Title | Sets the title text displayed at the top of the widget. | title: String? |
CometChatJoinProtectedGroup
widget does not provide additional functionalities beyond this level of customization.