> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-feature-react-native-sdk-quotedmessage-a.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-feature-react-native-sdk-quotedmessage-a/vzzfpS2btRpdNNgT/images/0f009c9e-multi_tab_chat_ui_guide_overview_cometchat_screens-f96decee1c0855206526aa24e9ade1bd.png?fit=max&auto=format&n=vzzfpS2btRpdNNgT&q=85&s=73c727bd5867131a5d5452df81811cb2" 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-feature-react-native-sdk-quotedmessage-a/Jekl0sHaq-tRog2V/images/57040405-multi_tab_chat_ui_guide_chat_cometchat_screens-7e1a444deabe0e7aad3aef7f16fe7f94.png?fit=max&auto=format&n=Jekl0sHaq-tRog2V&q=85&s=4896bdbd16a4934d8aad87c3b597e220" 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-feature-react-native-sdk-quotedmessage-a/DHfasVbiAENM-XY2/images/9b672942-multi_tab_chat_ui_guide_user_cometchat_screens-5eec8f08a8fba44e2d8c900c0ce719e4.png?fit=max&auto=format&n=DHfasVbiAENM-XY2&q=85&s=07ec71d26a72dd6b3792610ed0bde80c" 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-feature-react-native-sdk-quotedmessage-a/IROXeajQRcMWx2uk/images/733a1427-multi_tab_chat_ui_guide_group_cometchat_screens-8b085f56f8edcfee8a5d681a0a3f0e5f.png?fit=max&auto=format&n=IROXeajQRcMWx2uk&q=85&s=86f9f31255faf1ae9282674c5b5d966a" 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-feature-react-native-sdk-quotedmessage-a/nV1KIvn8ZxahSHvn/images/3a207066-multi_tab_chat_ui_guide_overview_cometchat_screens-7781f14bb2a16c18336fedd60f737e6e.png?fit=max&auto=format&n=nV1KIvn8ZxahSHvn&q=85&s=50e3511e2fc640318476a03a2d5d0fdb" 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-feature-react-native-sdk-quotedmessage-a/zd9jYi4xvTDJ3vRH/images/b7998116-multi_tab_chat_ui_guide_chat_cometchat_screens-a0b8e311f8a7c74cbcbfa05c5905fb87.png?fit=max&auto=format&n=zd9jYi4xvTDJ3vRH&q=85&s=b01def2889cb52e821621b725ff3086c" 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-feature-react-native-sdk-quotedmessage-a/1gtOmNl1ryouxO5Y/images/8a616a6a-multi_tab_chat_ui_guide_user_cometchat_screens-5bddf6dbc1719b0ea6cdb3b1ac0d1eeb.png?fit=max&auto=format&n=1gtOmNl1ryouxO5Y&q=85&s=c6e088520b9333ea1bdcc8fa1cc45f29" 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-feature-react-native-sdk-quotedmessage-a/_lZ5S0KefxAVVFd5/images/1782c8d2-multi_tab_chat_ui_guide_group_cometchat_screens-1ed846f9ce071fc672379406ad5ebaaf.png?fit=max&auto=format&n=_lZ5S0KefxAVVFd5&q=85&s=546efe2f5cfde33ef78d8ad11181cf47" 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>
