Overview
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.
- Android
- iOS

CometChatJoinProtectedGroup widget is composed of the following Base Widgets:
Usage
Integration
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.
1. Using Navigator to Launch CometChatJoinProtectedGroup
- Dart
2. Embedding CometChatJoinProtectedGroup as a Widget in the build Method
- Dart
Actions
1. onJoinTap
TheonJoinTap 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.
- Dart
2. onBack
Enhance your application’s functionality by leveraging theonBack 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.
- Dart
3. onError
You can customize this behavior by using the provided code snippet to override theonError and improve error handling.
- Dart
Filters
Filters allow you to customize the data displayed in a list within aWidget. 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.
Events
Events are emitted by aWidget. 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.
Example
- Dart
your_screen.dart
Customization
To fit your app’s design requirements, you can customize the appearance of the Groups widget. We provide exposed methods that allow you to modify the experience and behavior according to your specific needs.Style
Using Style you can customize the look and feel of the widget in your app, These parameters typically control elements such as the color, size, shape, and fonts used within the widget.1. JoinProtectedGroup Style 🛑
You can set theJoinProtectedGroupStyle to the CometChatJoinProtectedGroup Widget to customize the styling.
- Dart
- Android
- iOS

Functionality
These are a set of small functional customizations that allow you to fine-tune the overall experience of the widget. With these, you can change text, set custom icons, and toggle the visibility of UI elements.- Android
- iOS

- Dart
- Android
- iOS

CometChatJoinProtectedGroup class.
Advanced
For advanced-level customization, you can set custom widgets to the widget. This lets you tailor each aspect of the widget to fit your exact needs and application aesthetics. You can create and define your own widgets and then incorporate those into the widget. TheCometChatJoinProtectedGroup widget does not provide additional functionalities beyond this level of customization.



