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

# Multi Tab Chat UI Guide

This guide will help you create a multi-tab chat user interface using the cometchat\_chat\_uikit package in Flutter. The final UI will consist of three tabs: Conversations, Users, and Groups.

<Tabs>
  <Tab title="Android (Overview)">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-restapi-chatapi-quotedmessages/BLYnyZ3UCBkhhyX6/images/0f009c9e-multi_tab_chat_ui_guide_overview_cometchat_screens-f96decee1c0855206526aa24e9ade1bd.png?fit=max&auto=format&n=BLYnyZ3UCBkhhyX6&q=85&s=3c20a9b7d267d2ce5f16bdb343be3d93" alt="Image" width="4498" height="3121" data-path="images/0f009c9e-multi_tab_chat_ui_guide_overview_cometchat_screens-f96decee1c0855206526aa24e9ade1bd.png" />
  </Tab>

  <Tab title="Android (Conversations)">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-restapi-chatapi-quotedmessages/nZTWxsiKZDWytuJX/images/57040405-multi_tab_chat_ui_guide_chat_cometchat_screens-7e1a444deabe0e7aad3aef7f16fe7f94.png?fit=max&auto=format&n=nZTWxsiKZDWytuJX&q=85&s=a9c475a4ec50df3a8c25bdfab27d2289" alt="Image" width="4498" height="3121" data-path="images/57040405-multi_tab_chat_ui_guide_chat_cometchat_screens-7e1a444deabe0e7aad3aef7f16fe7f94.png" />
  </Tab>

  <Tab title="Android (Users)">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-restapi-chatapi-quotedmessages/hd8aWPPEt1-sQjMJ/images/9b672942-multi_tab_chat_ui_guide_user_cometchat_screens-5eec8f08a8fba44e2d8c900c0ce719e4.png?fit=max&auto=format&n=hd8aWPPEt1-sQjMJ&q=85&s=735c96f9f7833377d51e062e7f49f278" alt="Image" width="4498" height="3121" data-path="images/9b672942-multi_tab_chat_ui_guide_user_cometchat_screens-5eec8f08a8fba44e2d8c900c0ce719e4.png" />
  </Tab>

  <Tab title="Android (Groups)">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-restapi-chatapi-quotedmessages/evjayrjz9E9_eooQ/images/733a1427-multi_tab_chat_ui_guide_group_cometchat_screens-8b085f56f8edcfee8a5d681a0a3f0e5f.png?fit=max&auto=format&n=evjayrjz9E9_eooQ&q=85&s=dc98f663b1a4330f373bad81c1b3a439" alt="Image" width="4498" height="3121" data-path="images/733a1427-multi_tab_chat_ui_guide_group_cometchat_screens-8b085f56f8edcfee8a5d681a0a3f0e5f.png" />
  </Tab>
</Tabs>

<Tabs>
  <Tab title="iOS (Overview)">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-restapi-chatapi-quotedmessages/RJ-y7db2pUWbtB6R/images/3a207066-multi_tab_chat_ui_guide_overview_cometchat_screens-7781f14bb2a16c18336fedd60f737e6e.png?fit=max&auto=format&n=RJ-y7db2pUWbtB6R&q=85&s=4df1ebf6bf9c3d6a799f149e278883d4" alt="Image" width="4498" height="3121" data-path="images/3a207066-multi_tab_chat_ui_guide_overview_cometchat_screens-7781f14bb2a16c18336fedd60f737e6e.png" />
  </Tab>

  <Tab title="iOS (Conversations)">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-restapi-chatapi-quotedmessages/N8MeW-NyvAe59xm0/images/b7998116-multi_tab_chat_ui_guide_chat_cometchat_screens-a0b8e311f8a7c74cbcbfa05c5905fb87.png?fit=max&auto=format&n=N8MeW-NyvAe59xm0&q=85&s=9ee3e3baf6e8c61e012d1b2e55dca60f" alt="Image" width="4498" height="3121" data-path="images/b7998116-multi_tab_chat_ui_guide_chat_cometchat_screens-a0b8e311f8a7c74cbcbfa05c5905fb87.png" />
  </Tab>

  <Tab title="iOS (Users)">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-restapi-chatapi-quotedmessages/AWDuA-EDk5vHn6uY/images/8a616a6a-multi_tab_chat_ui_guide_user_cometchat_screens-5bddf6dbc1719b0ea6cdb3b1ac0d1eeb.png?fit=max&auto=format&n=AWDuA-EDk5vHn6uY&q=85&s=6fe986efe57e34d933609727be430d68" alt="Image" width="4498" height="3121" data-path="images/8a616a6a-multi_tab_chat_ui_guide_user_cometchat_screens-5bddf6dbc1719b0ea6cdb3b1ac0d1eeb.png" />
  </Tab>

  <Tab title="iOS (Groups)">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-restapi-chatapi-quotedmessages/3or4QRr1BP-18zyN/images/1782c8d2-multi_tab_chat_ui_guide_group_cometchat_screens-1ed846f9ce071fc672379406ad5ebaaf.png?fit=max&auto=format&n=3or4QRr1BP-18zyN&q=85&s=af2a1b1c5e212e156bd0d9c529b2f74e" alt="Image" width="4498" height="3121" data-path="images/1782c8d2-multi_tab_chat_ui_guide_group_cometchat_screens-1ed846f9ce071fc672379406ad5ebaaf.png" />
  </Tab>
</Tabs>

##### Create the Multi-Tab Chat UI:

Update your `lib/multi_tab_chat_ui_guid.dart` file with the following code:

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

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

      @override
      State<MultiTabUIGuideExample> createState() => _MultiTabUIGuideExampleState();
    }

    class _MultiTabUIGuideExampleState extends State<MultiTabUIGuideExample> {

      @override
      Widget build(BuildContext context) {
        return DefaultTabController(
          length: 3,
          child: Scaffold(
            appBar: AppBar(
              title: const Text('Multi Tab UI Guide'),
              backgroundColor: Colors.white,
              leading: null,
              automaticallyImplyLeading: false,
              bottom: const TabBar(
                tabs: [
                  Tab(icon: Icon(Icons.chat), text: 'Conversation'),
                  Tab(icon: Icon(Icons.person), text: 'Users'),
                  Tab(icon: Icon(Icons.group), text: 'Groups'),
                ],
              ),
            ),
            body: const TabBarView(
              children: [
                CometChatConversationsWithMessages(
                    conversationsConfiguration: ConversationsConfiguration(
                        hideAppbar: true
                    )
                ),
                CometChatUsersWithMessages(
                    usersConfiguration: UsersConfiguration(
                        hideAppbar: true,
                        hideSearch: true
                    )
                ),
                CometChatGroupsWithMessages(
                    groupsConfiguration: GroupsConfiguration(
                        hideAppbar: true,
                        hideSearch: true
                    )
                ),
              ],
            ),
          ),
        );
      }
    }
    ```
  </Tab>
</Tabs>
