> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-docs-angular-v5-docs-update.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Banned Members

> Banned Members — CometChat documentation.

## Overview

`CometChatBannedMembers` is a crucial [Widget](/ui-kit/flutter/v4/components-overview#components) that showcases users who have been restricted from participating in specific groups or conversations. Once banned, users lose access to content and discussions within the affected group. Administrators or owners wield the authority to ban members from groups they oversee, enabling them to monitor user activity and behavior closely. With CometChatBannedMembers, administrators can take swift and appropriate actions to maintain group integrity and uphold community standards.

<Tabs>
  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-angular-v5-docs-update/jFxtGVgb6H4XYgC5/images/dc5fa652-banned_members_overview_cometchat_screens-55ee7c0346a0561b0cae1797f70677f1.png?fit=max&auto=format&n=jFxtGVgb6H4XYgC5&q=85&s=e34da48d1137296d7d650e1047873ce7" alt="Image" width="4498" height="3121" data-path="images/dc5fa652-banned_members_overview_cometchat_screens-55ee7c0346a0561b0cae1797f70677f1.png" />
  </Tab>

  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-angular-v5-docs-update/hS2ODI36gzqSC7wJ/images/b8ce2a93-banned_members_overview_cometchat_screens-ae4e97e494b305c3ebf82079801263b9.png?fit=max&auto=format&n=hS2ODI36gzqSC7wJ&q=85&s=ed0bdf74e730ed5afe6aa05541c37c61" alt="Image" width="4498" height="3121" data-path="images/b8ce2a93-banned_members_overview_cometchat_screens-ae4e97e494b305c3ebf82079801263b9.png" />
  </Tab>
</Tabs>

The `BannedMembers` Widget is composed of the following BaseWidgets:

| Widgets                                           | Description                                                                                                                                                                                |
| ------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [CometChatListBase](/ui-kit/flutter/v4/list-base) | `CometChatListBase` serves as a container Widget equipped with a title (navigationBar), search functionality (search-bar), background settings, and a container for embedding a list view. |
| [CometChatListItem](/ui-kit/flutter/v4/list-item) | This Widget renders information extracted from a `User` object onto a tile, featuring a title, subtitle, leading view, and trailing view.                                                  |

***

## Usage

### Integration

`CometChatBannedMembers` , 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 view controllers. With banned members, users gain access to a wide range of parameters and methods for effortless customization of its user interface.

You can launch `CometChatBannedMembers` 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 `CometChatBannedMembers`

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    Navigator.push(context, MaterialPageRoute(builder: (context) => CometChatBannedMembers(group: Group(guid: "", name: "", type: "")))); // A group object is required to launch this widget.
    ```
  </Tab>
</Tabs>

##### 2. Embedding `CometChatBannedMembers` as a Widget in the build Method

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    import 'package:cometchat_chat_uikit/cometchat_chat_uikit.dart';
    import 'package:flutter/material.dart';

    class GroupBannedMembers extends StatefulWidget {
      const GroupBannedMembers({super.key});

      @override
      State<GroupBannedMembers> createState() => _GroupBannedMembersState();
    }

    class _GroupBannedMembersState extends State<GroupBannedMembers> {

      @override
      Widget build(BuildContext context) {
        return Scaffold(
            body: SafeArea(
                child: CometChatBannedMembers(
                  group: Group(guid: "", name: "", type: ""), // A group object is required to launch this widget.
                ) // A group object is required to launch this widget.
            )
        );
      }
    }
    ```
  </Tab>
</Tabs>

***

### Actions

[Actions](/ui-kit/flutter/v4/components-overview#actions) dictate how a Widget functions. They are divided into two types: Predefined and User-defined. You can override either type, allowing you to tailor the behavior of the Widget to fit your specific needs.

##### 1. onItemTap

This method proves valuable when users seek to override onItemClick functionality within `CometChatBannedMembers` , 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.

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatBannedMembers(
      group: Group(guid: "", name: "", type: ""), // A group object is required to launch this widget.
      onItemTap: (groupMember) {
        // TODO("Not yet implemented")
      },
    )
    ```
  </Tab>
</Tabs>

***

##### 2. onItemLongPress

This method becomes invaluable when users seek to override long-click functionality within `CometChatBannedMembers` , 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.

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatBannedMembers(
      group: Group(guid: "", name: "", type: ""), // A group object is required to launch this widget.
      onItemLongPress: (groupMember) {
        // TODO("Not yet implemented")
      },
    )
    ```
  </Tab>
</Tabs>

***

##### 3. onBack

Enhance your application's functionality by leveraging the `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.

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatBannedMembers(
      group: Group(guid: "", name: "", type: ""), // A group object is required to launch this widget.
      onBack: () {
        // TODO("Not yet implemented")
      },
    )
    ```
  </Tab>
</Tabs>

***

##### 4. onError

You can customize this behavior by using the provided code snippet to override the `onError` and improve error handling.

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatBannedMembers(
      group: Group(guid: "", name: "", type: ""), // A group object is required to launch this widget.
      onError: (e) {
        // TODO("Not yet implemented")
      },
    )
    ```
  </Tab>
</Tabs>

***

##### 5. onSelection

When the `onSelection` event is triggered, it furnishes the list of selected members. This event can be invoked by any button or action within the interface. You have the flexibility to implement custom actions or behaviors based on the selected members.

This action does not come with any predefined behavior. However, you have the flexibility to override this event and tailor it to suit your needs using the following code snippet.

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatBannedMembers(
      group: Group(guid: "", name: "", type: ""), // A group object is required to launch this widget.
      selectionMode: SelectionMode.multiple,
      onSelection: (groupMembersList) {
        // TODO("Not yet implemented")
      },
    )
    ```
  </Tab>
</Tabs>

***

### Filters

**Filters** allow you to customize the data displayed in a list within a 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.

##### 1. BannedGroupMembersRequestBuilder

The `BannedGroupMembersRequestBuilder` enables you to filter and customize the Banned Members list based on available parameters in BannedGroupMembersRequestBuilder. This feature allows you to create more specific and targeted queries when fetching banned members. The following are the parameters available in `BannedGroupMembersRequestBuilder`

| **Property**       | Description                                                    | Code                     |
| ------------------ | -------------------------------------------------------------- | ------------------------ |
| **Guid**           | Group ID for the group whose banned members are to be fetched. | `guid: String`           |
| **Limit**          | Number of results to limit the query.                          | `limit: int?`            |
| **Search Keyword** | Keyword for searching.                                         | `searchKeyword: String?` |

**Example**

In the example below, we are applying a filter to the banned members by setting the limit to 10.

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatBannedMembers(
        group: Group(guid: "", name: "", type: ""), // A group object is required to launch this widget.
        bannedMemberRequestBuilder: BannedGroupMembersRequestBuilder(guid: "")
          ..limit = 10
    )
    ```
  </Tab>
</Tabs>

***

##### 2. CustomBannedMembersProtocol

The `CustomBannedMembersProtocol` uses `BannedGroupMembersRequestBuilder` enables you to filter and customize the search list based on available parameters in BannedMembersRequestBuilder.

This feature allows you to keep uniformity between the displayed Banned Members list and searched Banned Members.

**Example**

<Tabs>
  <Tab title="Dart">
    ```dart custom_protocol.dart theme={null}
    import 'package:cometchat_chat_uikit/cometchat_chat_uikit.dart';

    class CustomBannedMembersProtocol extends BannedMemberBuilderProtocol {
      const CustomBannedMembersProtocol(super.builder);

      @override
      BannedGroupMembersRequest getRequest() {
          return requestBuilder.build();
      }

      @override
      BannedGroupMembersRequest getSearchRequest(String val) {
          requestBuilder.searchKeyword = val;
          return requestBuilder.build();
      }
    }
    ```
  </Tab>
</Tabs>

<Tabs>
  <Tab title="Dart">
    ```dart main.dart theme={null}
    CometChatBannedMembers(
      group: Group(guid: "", name: "", type: ""), // A group object is required to launch this widget.
      bannedMemberProtocol: CustomBannedMembersProtocol(BannedGroupMembersRequestBuilder(guid: "")..searchKeyword = "searchKeyword"),
    )
    ```
  </Tab>
</Tabs>

***

### Events

[Events](/ui-kit/flutter/v4/components-overview#events) are emitted by a `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                                                                                               |
| ------------------------- | --------------------------------------------------------------------------------------------------------- |
| **ccGroupMemberBanned**   | This method is triggered when the logged-in user successfully bans a user from the group.                 |
| **ccGroupMemberUnBanned** | This method triggers when the logged-in user successfully unbans a previously banned user from the group. |

<Tabs>
  <Tab title="Dart">
    ```dart your_screen.dart theme={null}
    import 'package:cometchat_chat_uikit/cometchat_chat_uikit.dart';
    import 'package:cometchat_sdk/models/action.dart' as cc;
    import 'package:flutter/material.dart';

    class YourScreen extends StatefulWidget {
      const YourScreen({super.key});

      @override
      State<YourScreen> createState() => _YourScreenState();
    }

    class _YourScreenState extends State<YourScreen> with CometChatGroupEventListener {

      @override
      void initState() {
        super.initState();
        CometChatGroupEvents.addGroupsListener("listenerId", this); // Add the listener
      }

      @override
      void dispose(){
        super.dispose();
        CometChatGroupEvents.removeGroupsListener("listenerId"); // Remove the listener
      }

      @override
      void ccGroupMemberBanned(cc.Action message, User bannedUser, User bannedBy, Group bannedFrom) {
        // TODO("Not yet implemented")
      }

      @override
      void ccGroupMemberUnbanned(cc.Action message, User unbannedUser, User unbannedBy, Group unbannedFrom) {
        // TODO("Not yet implemented")
      }

      @override
      Widget build(BuildContext context) {
        return const Placeholder();
      }
    }
    ```
  </Tab>
</Tabs>

***

## 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. BannedMembers Style 🛑

You can set the `BannedMembersStyle` to the `CometChatBannedMembers` Widget to customize the styling.

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatBannedMembers(
      group: Group(guid: "", name: "", type: ""), // A group object is required to launch this widget.
      bannedMembersStyle: BannedMembersStyle(
          background: Color(0xFFE4EBF5),
          titleStyle: TextStyle(color: Colors.red),
          backIconTint: Colors.red
      ),
    )
    ```
  </Tab>
</Tabs>

<Tabs>
  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-angular-v5-docs-update/hS2ODI36gzqSC7wJ/images/b65e1f4e-banned_members_style_cometchat_screens-e65934ed0c7b81bf4b089cc6b0ed2b2c.png?fit=max&auto=format&n=hS2ODI36gzqSC7wJ&q=85&s=8c128453609a48ecd83a08d4d2e869b6" alt="Image" width="4498" height="3121" data-path="images/b65e1f4e-banned_members_style_cometchat_screens-e65934ed0c7b81bf4b089cc6b0ed2b2c.png" />
  </Tab>

  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-angular-v5-docs-update/PJhf5xm-xXvMA0BD/images/47ae9727-banned_members_style_cometchat_screens-4e18444e2974a8e6ccfdc6fcc1231cf6.png?fit=max&auto=format&n=PJhf5xm-xXvMA0BD&q=85&s=9cf04bad4711c76a4b66330be48a587b" alt="Image" width="4498" height="3121" data-path="images/47ae9727-banned_members_style_cometchat_screens-4e18444e2974a8e6ccfdc6fcc1231cf6.png" />
  </Tab>
</Tabs>

List of properties exposed by BannedMembersStyle

| **Property**                  | Description                                                    | Code                                 |
| ----------------------------- | -------------------------------------------------------------- | ------------------------------------ |
| **Back Icon Tint**            | Tint color for the back icon.                                  | `backIconTint: Color?`               |
| **Background**                | Background color or decoration.                                | `background: Decoration?`            |
| **Border**                    | Border of the Widget.                                          | `border: Border?`                    |
| **Border Radius**             | Radius of the Widget's border.                                 | `borderRadius: BorderRadius?`        |
| **Empty Text Style**          | Style for the text displayed when there are no banned members. | `emptyTextStyle: TextStyle?`         |
| **Error Text Style**          | Style for the text displayed when there is an error.           | `errorTextStyle: TextStyle?`         |
| **Gradient**                  | Gradient used for the Widget's background.                     | `gradient: Gradient?`                |
| **Height**                    | Height of the Widget.                                          | `height: double?`                    |
| **Loading Icon Tint**         | Tint color for the loading icon.                               | `loadingIconTint: Color?`            |
| **Online Status Color**       | Color indicating online status.                                | `onlineStatusColor: Color?`          |
| **Search Background**         | Background color or decoration for the search field.           | `searchBackground: Decoration?`      |
| **Search Border Color**       | Color of the search field's border.                            | `searchBorderColor: Color?`          |
| **Search Border Radius**      | Radius of the search field's border.                           | `searchBorderRadius: BorderRadius?`  |
| **Search Border Width**       | Width of the search field's border.                            | `searchBorderWidth: double?`         |
| **Search Icon Tint**          | Tint color for the search icon.                                | `searchIconTint: Color?`             |
| **Search Placeholder Style**  | Style for the placeholder text in the search field.            | `searchPlaceholderStyle: TextStyle?` |
| **Search Style**              | Style for the search text.                                     | `searchStyle: TextStyle?`            |
| **Section Header Text Style** | Style for the section header text.                             | `sectionHeaderTextStyle: TextStyle?` |
| **Tail Text Style**           | Style for the text displayed at the end of the list.           | `tailTextStyle: TextStyle?`          |
| **Title Style**               | Style for the title text.                                      | `titleStyle: TextStyle?`             |
| **Width**                     | Width of the Widget.                                           | `width: double?`                     |

***

##### 2. Avatar Style

To apply customized styles to the `Avatar` Widget in the Banned Members Widget, you can use the following code snippet. For further insights on `Avatar` Styles [refer](/ui-kit/flutter/v4/avatar)

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatBannedMembers(
      group: Group(guid: "", name: "", type: ""), // A group object is required to launch this widget.
      avatarStyle: AvatarStyle(
          border: Border.all(width: 5),
          borderRadius: 20,
          background: Colors.red
      ),
    )
    ```
  </Tab>
</Tabs>

***

##### 3. StatusIndicator Style

To apply customized styles to the Status Indicator widget in the `CometChatBannedMembers` Widget, You can use the following code snippet. For further insights on Status Indicator Styles [refer](/ui-kit/flutter/v4/status-indicator)

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatBannedMembers(
      group: Group(guid: "", name: "", type: ""), // A group object is required to launch this widget.
      statusIndicatorStyle: StatusIndicatorStyle(
          borderRadius: 10,
          gradient: LinearGradient(colors: [Colors.red, Colors.orange], begin: Alignment.topLeft, end: Alignment.bottomRight)
      ),
    )
    ```
  </Tab>
</Tabs>

***

##### 4. ListItem Style

To apply customized styles to the `ListItemStyle` in the `CometChatBannedMembers` Widget, you can use the following code snippet. For further insights on `List Item` Styles [refer](/ui-kit/flutter/v4/list-item)

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatBannedMembers(
      group: Group(guid: "", name: "", type: ""), // A group object is required to launch this widget.
      hideSeparator: true,
      listItemStyle: ListItemStyle(
          background: Color(0xFFE4EBF5),
          borderRadius: 20,
          border: Border.all(width: 2),
          margin: EdgeInsets.only(top: 10),
          padding: EdgeInsets.only(left: 10)
      ),
    )
    ```
  </Tab>
</Tabs>

***

### 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.

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatBannedMembers(
        group: Group(guid: "", name: "", type: ""), // A group object is required to launch this widget.
        title: "Your Title",
        hideSeparator: true,
        hideSearch: true,
        showBackButton: false
    )
    ```
  </Tab>
</Tabs>

<Tabs>
  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-angular-v5-docs-update/xHWe3as1OGB4Vmrv/images/9280e326-banned_members_functionality_cometchat_screens-4226796e410a24d2f748778f0e0c2657.png?fit=max&auto=format&n=xHWe3as1OGB4Vmrv&q=85&s=b7fe0f108b569bf13b6edab3f6f8301f" alt="Image" width="4498" height="3121" data-path="images/9280e326-banned_members_functionality_cometchat_screens-4226796e410a24d2f748778f0e0c2657.png" />
  </Tab>

  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-angular-v5-docs-update/35nHswVgWvBftvIw/images/1e561a54-banned_members_functionality_cometchat_screens-7a8783d85286938a3544ff1b8f7d05ad.png?fit=max&auto=format&n=35nHswVgWvBftvIw&q=85&s=cab4bfb21eefba2c2b371f57e039f2e0" alt="Image" width="4498" height="3121" data-path="images/1e561a54-banned_members_functionality_cometchat_screens-7a8783d85286938a3544ff1b8f7d05ad.png" />
  </Tab>
</Tabs>

List of functionality exposed by `CometChatBannedMembers`

| Property                        | Description                                 | Code                               |
| ------------------------------- | ------------------------------------------- | ---------------------------------- |
| **Back Button**                 | Back button widget                          | `backButton: Widget?`              |
| **Disable Users Presence**      | Controls visibility of status indicator     | `disableUsersPresence: bool`       |
| **Empty State Text**            | Text to be displayed when the list is empty | `emptyStateText: String?`          |
| **Error State Text**            | Text to be displayed when error occur       | `errorStateText: String?`          |
| **Hide Error**                  | Toggle visibility of error dialog           | `hideError: bool?`                 |
| **Hide Search**                 | Switch on/off search input                  | `hideSearch: bool`                 |
| **Hide Separator**              | Toggle visibility of separator              | `hideSeparator: bool`              |
| **Search Box Icon**             | Search icon widget                          | `searchBoxIcon: Widget?`           |
| **Search Placeholder**          | Placeholder text of search input            | `searchPlaceholder: String?`       |
| **Show Back Button**            | Switch on/off back button                   | `showBackButton: bool`             |
| **Title**                       | Sets title for the list                     | `title: String?`                   |
| **Unban Icon Url**              | URL of the unban icon                       | `unbanIconUrl: String?`            |
| **Unban Icon Url Package Name** | Package name of the unban icon URL          | `unbanIconUrlPackageName: String?` |

***

### Advance

For advanced-level customization, you can set custom views 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 widget and then incorporate those into the Widget.

#### ListItemView

With this function, you can assign a custom ListItem to the `CometChatBannedMembers` Widget.

<Tabs>
  <Tab title="Dart">
    ```dart widget theme={null}
    CometChatBannedMembers(
      group: Group(guid: "", name: "", type: ""), // A group object is required to launch this widget.
      listItemView: (groupMember) {
        return Placeholder(); // Replace this placeholder with your custom widget.
      },
    )
    ```
  </Tab>
</Tabs>

Here is the complete example for reference:

**Example**

You can indeed create a custom widget named `custom_list_item.dart` for more complex or unique list items.

<Tabs>
  <Tab title="Dart">
    ```dart custom_list_item.dart theme={null}
    import 'package:flutter/material.dart';
    import 'package:intl/intl.dart';
    import '../helper/utils/custom_colors.dart';

    class CustomListItems extends StatelessWidget {
      final String name;
      final DateTime? lastMessageTime;
      final String? avatarUrl;

      const CustomListItems({
        super.key,
        required this.name,
        this.lastMessageTime,
        this.avatarUrl,
      });

      String formatDateTime(DateTime dateTime) {
        final now = DateTime.now();
        final difference = now.difference(dateTime);

        if (difference.inDays == 0) {
          return DateFormat('HH:mm').format(dateTime);
        } else if (difference.inDays == 1) {
          return 'Yesterday';
        } else {
          return DateFormat('yyyy-MM-dd').format(dateTime);
        }
      }

      @override
      Widget build(BuildContext context) {
        return Container(
          margin: const EdgeInsets.only(top: 5, bottom: 5),
          padding: const EdgeInsets.all(8.0),
          decoration: BoxDecoration(
            border: Border.all(color: Color(0xFF6851D6), width: 1), // Example border color
            borderRadius: BorderRadius.circular(8.0),
            color: Color(0xFFEEEEEE)
          ),
          child: Row(
            crossAxisAlignment: CrossAxisAlignment.center,
            children: [
              Expanded(
                child: Column(
                  crossAxisAlignment: CrossAxisAlignment.start,
                  mainAxisAlignment: MainAxisAlignment.center,
                  children: [
                    Text(
                      name,
                      style: const TextStyle(
                        fontWeight: FontWeight.bold,
                      ),
                    ),
                    lastMessageTime == null ? Container() : Text(formatDateTime(lastMessageTime!)),
                  ],
                ),
              ),
              const SizedBox(width: 8.0),
              if (avatarUrl != null)
                ClipOval(
                  child: Image.network(
                    avatarUrl!,
                    width: 40.0,
                    height: 40.0,
                    fit: BoxFit.cover,
                    errorBuilder: (context, error, stackTrace) {
                      return const Icon(
                        Icons.person,
                        size: 40.0,
                      );
                    },
                  ),
                )
              else
                const Icon(
                  Icons.person,
                  size: 40.0,
                ),
            ],
          ),
        );
      }
    }
    ```
  </Tab>
</Tabs>

<Tabs>
  <Tab title="Dart">
    ```dart main.dart theme={null}
    CometChatBannedMembers(
      group: Group(guid: "", name: "", type: ""), // A group object is required to launch this widget.
      listItemView: (groupMember) {
        return CustomListItems(
          name: groupMember.name,
          avatarUrl: groupMember.avatar,
        ); // Replaced Placeholder with CustomListItems widget.
      },
    )
    ```
  </Tab>
</Tabs>

<Tabs>
  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-angular-v5-docs-update/H2Jrd_-HLEdrybSX/images/eb806d47-banned_members_set_listitem_view_cometchat_screens-fef2b8782d0fd6ec3c5ab16909b578d8.png?fit=max&auto=format&n=H2Jrd_-HLEdrybSX&q=85&s=8374311bdbe9742c9f5e4c4be5fd1f86" alt="Image" width="4498" height="3121" data-path="images/eb806d47-banned_members_set_listitem_view_cometchat_screens-fef2b8782d0fd6ec3c5ab16909b578d8.png" />
  </Tab>

  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-angular-v5-docs-update/T0aTXbhtWmYnVWC0/images/b05d0384-banned_members_set_listitem_view_cometchat_screens-52e21f34bd38d397edd71e6bcc35f412.png?fit=max&auto=format&n=T0aTXbhtWmYnVWC0&q=85&s=d95a5c6cce4e50fa9e7dcc9ec621be6f" alt="Image" width="4498" height="3121" data-path="images/b05d0384-banned_members_set_listitem_view_cometchat_screens-52e21f34bd38d397edd71e6bcc35f412.png" />
  </Tab>
</Tabs>

***

#### SubtitleView

You can customize the subtitle view for each item to meet your specific preferences and needs.

<Tabs>
  <Tab title="Dart">
    ```dart widget theme={null}
    CometChatBannedMembers(
      group: Group(guid: "", name: "", type: ""), // A group object is required to launch this widget.
      subtitleView: (groupMember) {
        return Placeholder(); // Replace this placeholder with your custom widget.
      },
    )
    ```
  </Tab>
</Tabs>

Here is the complete example for reference:

**Example**

<Tabs>
  <Tab title="Dart">
    ```dart main.dart theme={null}
    CometChatBannedMembers(
      group: Group(guid: "", name: "", type: ""), // A group object is required to launch this widget.
      subtitleView: (groupMember) {
        return const Row(
          children: [
            Icon(Icons.call, color: Color(0xFF6851D6), size: 25,),
            SizedBox(width: 10),
            Icon(Icons.video_call, color: Color(0xFF6851D6), size: 25,),
          ],
        ); // Replaced the placeholder with a custom widget.
      },
    )
    ```
  </Tab>
</Tabs>

<Tabs>
  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-angular-v5-docs-update/pnzgsGg7Vjogofic/images/86b6e795-banned_members_set_subtitle_view_cometchat_screens-01088e0054aa317c7fcf748c78b933ed.png?fit=max&auto=format&n=pnzgsGg7Vjogofic&q=85&s=929aed9e2792bc13b04dbb1a1c624b64" alt="Image" width="4498" height="3121" data-path="images/86b6e795-banned_members_set_subtitle_view_cometchat_screens-01088e0054aa317c7fcf748c78b933ed.png" />
  </Tab>

  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-angular-v5-docs-update/UlRk7SYYn7zdv3js/images/4f8cefe2-banned_members_set_subtitle_view_cometchat_screens-54a11f9f08a5ec20f8312a7bd994eaa4.png?fit=max&auto=format&n=UlRk7SYYn7zdv3js&q=85&s=c30b7061e2c2e23b4462dc2a6f91a638" alt="Image" width="4498" height="3121" data-path="images/4f8cefe2-banned_members_set_subtitle_view_cometchat_screens-54a11f9f08a5ec20f8312a7bd994eaa4.png" />
  </Tab>
</Tabs>

***

#### AppBarOptions

You can set the Custom `appBarOptions` to the `CometChatBannedMembers` widget.

<Tabs>
  <Tab title="Dart">
    ```dart widget theme={null}
    CometChatBannedMembers(
        group: Group(guid: "", name: "", type: ""), // A group object is required to launch this widget.
        appBarOptions: [
            Placeholder(),
            Placeholder(),
            Placeholder()
        ] // Replace this list of placeholder widgets with your list of custom widgets.
    )
    ```
  </Tab>
</Tabs>

Here is the complete example for reference:

**Example**

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatBannedMembers(
      group: Group(guid: "", name: "", type: ""), // A group object is required to launch this widget.
      appBarOptions: [
        InkWell(
          onTap: () {
            // TODO("Not yet implemented")
          },
          child: const Icon(Icons.ac_unit, color: Color(0xFF6851D6)),
        ),
        const SizedBox(width: 10)
      ] // Replaced the list of placeholder widgets with a list of custom widgets.
    )
    ```
  </Tab>
</Tabs>

<Tabs>
  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-angular-v5-docs-update/35nHswVgWvBftvIw/images/201cf6a0-banned_members_set_menu_cometchat_screens-365c59d3fd81d3a7fff99f526a4bd0e4.png?fit=max&auto=format&n=35nHswVgWvBftvIw&q=85&s=3da6eea2a1a5a6877a04badbe58d5ce8" alt="Image" width="4498" height="3121" data-path="images/201cf6a0-banned_members_set_menu_cometchat_screens-365c59d3fd81d3a7fff99f526a4bd0e4.png" />
  </Tab>

  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-angular-v5-docs-update/eXJ1ugMRc327AOoY/images/605fec4e-banned_members_set_menu_cometchat_screens-787f0f99d909e0e13fd1683a3dda70d1.png?fit=max&auto=format&n=eXJ1ugMRc327AOoY&q=85&s=b369b2d0eab09b9694ae9579e4a43466" alt="Image" width="4498" height="3121" data-path="images/605fec4e-banned_members_set_menu_cometchat_screens-787f0f99d909e0e13fd1683a3dda70d1.png" />
  </Tab>
</Tabs>

***

#### EmptyStateView

You can set a custom `EmptyStateView` using `emptyStateView` to match the error widget of your app.

<Tabs>
  <Tab title="Dart">
    ```dart widget theme={null}
    CometChatBannedMembers(
      group: Group(guid: "", name: "", type: ""), // A group object is required to launch this widget.
      emptyStateView: (context) {
        return Placeholder(); // Replace this placeholder with your custom widget.
      },
    )
    ```
  </Tab>
</Tabs>

Here is the complete example for reference:

**Example**

<Tabs>
  <Tab title="Dart">
    ```dart main.dart theme={null}
    CometChatBannedMembers(
      group: Group(guid: "", name: "", type: ""), // A group object is required to launch this widget.
      emptyStateView: (context) {
        return Container(
          width: MediaQuery.of(context).size.width,
          child: Center(
              child: const Column(
                crossAxisAlignment: CrossAxisAlignment.center,
                mainAxisAlignment: MainAxisAlignment.center,
                children: [
                  Spacer(),
                  Icon(Icons.sms_failed_outlined, color: Colors.red, size: 100,),
                  SizedBox(height: 20,),
                  Text("Your Custom Message"),
                  Spacer(),
                ],
              )
          ),
        ); // Replaced the placeholder with a custom widget.
      },
    )
    ```
  </Tab>
</Tabs>

<Tabs>
  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-angular-v5-docs-update/hS2ODI36gzqSC7wJ/images/bb784c53-banned_members_empty_state_view_cometchat_screens-c641528033e13886f030fc57a667970d.png?fit=max&auto=format&n=hS2ODI36gzqSC7wJ&q=85&s=400454e4e77280b82df2ea54e36eab1f" alt="Image" width="4498" height="3121" data-path="images/bb784c53-banned_members_empty_state_view_cometchat_screens-c641528033e13886f030fc57a667970d.png" />
  </Tab>

  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-angular-v5-docs-update/pnzgsGg7Vjogofic/images/8dda4aff-banned_members_empty_state_view_cometchat_screens-727552b914c5de9ef24984c1c2b247c7.png?fit=max&auto=format&n=pnzgsGg7Vjogofic&q=85&s=8b50ae1f0be97f24ed2d2a5db5dfd792" alt="Image" width="4498" height="3121" data-path="images/8dda4aff-banned_members_empty_state_view_cometchat_screens-727552b914c5de9ef24984c1c2b247c7.png" />
  </Tab>
</Tabs>

***

#### LoadingStateView

You can set a custom loader widget using `loadingStateView` to match the loading UI of your app.

<Tabs>
  <Tab title="Dart">
    ```dart widget theme={null}
    CometChatBannedMembers(
      group: Group(guid: "", name: "", type: ""), // A group object is required to launch this widget.
      loadingStateView: (context) {
        return Placeholder(); // Replace this placeholder with your custom widget.
      },
    )
    ```
  </Tab>
</Tabs>

Here is the complete example for reference:

**Example**

<Tabs>
  <Tab title="Dart">
    ```dart main.dart theme={null}
    CometChatBannedMembers(
      group: Group(guid: "", name: "", type: ""), // A group object is required to launch this widget.
      loadingStateView: (context) {
        return Container(
          width: MediaQuery.of(context).size.width,
          child: Center(
              child: CircularProgressIndicator()
          ),
        ); // Replaced the placeholder with a custom widget.
      },
    )
    ```
  </Tab>
</Tabs>

<Tabs>
  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-angular-v5-docs-update/ZgtHsaNQApHuht0z/images/c5a8ad61-banned_members_set_loading_state_view_cometchat_screens-f25fc22a198c869ae2197261abc13f39.png?fit=max&auto=format&n=ZgtHsaNQApHuht0z&q=85&s=da10d0f8fc9960cce308e0ad4fcb3006" alt="Image" width="4498" height="3121" data-path="images/c5a8ad61-banned_members_set_loading_state_view_cometchat_screens-f25fc22a198c869ae2197261abc13f39.png" />
  </Tab>

  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-angular-v5-docs-update/xB2gtIZtet1FaUV2/images/38a71f26-banned_members_set_loading_state_view_cometchat_screens-a4f13d14a32704be152954424194e6d2.png?fit=max&auto=format&n=xB2gtIZtet1FaUV2&q=85&s=4e82b655c24dac71dd73c165e16240f3" alt="Image" width="4498" height="3121" data-path="images/38a71f26-banned_members_set_loading_state_view_cometchat_screens-a4f13d14a32704be152954424194e6d2.png" />
  </Tab>
</Tabs>

***

#### ErrorStateView

You can set a custom `ErrorStateView` using `errorStateView` to match the error UI of your app.

<Tabs>
  <Tab title="Dart">
    ```dart widget theme={null}
    CometChatBannedMembers(
      group: Group(guid: "", name: "", type: ""), // A group object is required to launch this widget.
      errorStateView: (context) {
        return Placeholder(); // Replace this placeholder with your custom widget.
      },
    )
    ```
  </Tab>
</Tabs>

Here is the complete example for reference:

**Example**

<Tabs>
  <Tab title="Dart">
    ```dart main.dart theme={null}
    CometChatBannedMembers(
      group: Group(guid: "", name: "", type: ""), // A group object is required to launch this widget.
      errorStateView: (context) {
        return Container(
          width: MediaQuery.of(context).size.width,
          child: Center(
            child: const Column(
              crossAxisAlignment: CrossAxisAlignment.center,
              mainAxisAlignment: MainAxisAlignment.center,
              children: [
                Spacer(),
                Icon(Icons.error_outline, color: Colors.red, size: 100,),
                SizedBox(height: 20,),
                Text("Your Custom Error Message"),
                Spacer(),
              ],
            ),
          ),
        ); // Replaced the placeholder with a custom widget.
      },
    )
    ```
  </Tab>
</Tabs>

<Tabs>
  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-angular-v5-docs-update/p231kj41ev7n6i2F/images/65fb31ea-banned_members_set_error_state_view_cometchat_screens-043eb5e2ebe72ff62c80e6d1ded1c3d1.png?fit=max&auto=format&n=p231kj41ev7n6i2F&q=85&s=c9d69b68a60768fdbe9f94ff65b68800" alt="Image" width="4498" height="3121" data-path="images/65fb31ea-banned_members_set_error_state_view_cometchat_screens-043eb5e2ebe72ff62c80e6d1ded1c3d1.png" />
  </Tab>

  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-angular-v5-docs-update/0JTXbcRSRkK0YLha/images/99e7c8c0-banned_members_set_error_state_view_cometchat_screens-870394c8cfd09be4c2ad00d8b3ae5458.png?fit=max&auto=format&n=0JTXbcRSRkK0YLha&q=85&s=d3eafd4000f10c89d66ebdd61f9652ad" alt="Image" width="4498" height="3121" data-path="images/99e7c8c0-banned_members_set_error_state_view_cometchat_screens-870394c8cfd09be4c2ad00d8b3ae5458.png" />
  </Tab>
</Tabs>

***
