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

# Multi Tab Chat UI Guide

> Multi Tab Chat UI Guide — CometChat integration 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-rn-guide-message-privately/NN4EdpOU3viwWMb_/images/0f009c9e-multi_tab_chat_ui_guide_overview_cometchat_screens-f96decee1c0855206526aa24e9ade1bd.png?fit=max&auto=format&n=NN4EdpOU3viwWMb_&q=85&s=2b2ac087e78c5b68af7ada567b331c5d" 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-rn-guide-message-privately/le8ibYc8lBJsShSE/images/57040405-multi_tab_chat_ui_guide_chat_cometchat_screens-7e1a444deabe0e7aad3aef7f16fe7f94.png?fit=max&auto=format&n=le8ibYc8lBJsShSE&q=85&s=9a410a4fe3440170211069002d4e2c51" 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-rn-guide-message-privately/JSRiWiPGBHsJZFCg/images/9b672942-multi_tab_chat_ui_guide_user_cometchat_screens-5eec8f08a8fba44e2d8c900c0ce719e4.png?fit=max&auto=format&n=JSRiWiPGBHsJZFCg&q=85&s=105f147af2e39cbde843618aca309861" 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-rn-guide-message-privately/2JiXkJ8lq6PmPGlJ/images/733a1427-multi_tab_chat_ui_guide_group_cometchat_screens-8b085f56f8edcfee8a5d681a0a3f0e5f.png?fit=max&auto=format&n=2JiXkJ8lq6PmPGlJ&q=85&s=361310f9dcb97cf14dcd5638503889b5" 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-rn-guide-message-privately/PaxBG9I1yMoeQmt2/images/3a207066-multi_tab_chat_ui_guide_overview_cometchat_screens-7781f14bb2a16c18336fedd60f737e6e.png?fit=max&auto=format&n=PaxBG9I1yMoeQmt2&q=85&s=011399f17c22a7d080442eba5186a005" 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-rn-guide-message-privately/fxK75AS6FzDL1Oqo/images/b7998116-multi_tab_chat_ui_guide_chat_cometchat_screens-a0b8e311f8a7c74cbcbfa05c5905fb87.png?fit=max&auto=format&n=fxK75AS6FzDL1Oqo&q=85&s=c42642884647e2d2f691bb0514b1ef47" 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-rn-guide-message-privately/ubfBSdV1t6rmjxeA/images/8a616a6a-multi_tab_chat_ui_guide_user_cometchat_screens-5bddf6dbc1719b0ea6cdb3b1ac0d1eeb.png?fit=max&auto=format&n=ubfBSdV1t6rmjxeA&q=85&s=896e6d7dd0c3b38c5803a6f705767bc7" 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-rn-guide-message-privately/PrOf0fpV33FkfOMB/images/1782c8d2-multi_tab_chat_ui_guide_group_cometchat_screens-1ed846f9ce071fc672379406ad5ebaaf.png?fit=max&auto=format&n=PrOf0fpV33FkfOMB&q=85&s=9109a83322e97978d0ac9ae808d9f690" 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 theme={null}
    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>
