> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-docs-subscribed-threads-quoted-reply-pre.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-subscribed-threads-quoted-reply-pre/5OkSXgemkTHZ4q2Y/images/0f009c9e-multi_tab_chat_ui_guide_overview_cometchat_screens-f96decee1c0855206526aa24e9ade1bd.png?fit=max&auto=format&n=5OkSXgemkTHZ4q2Y&q=85&s=c0e2f26cdb63b75ad372630e25674144" 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-subscribed-threads-quoted-reply-pre/OcG56TFj2sPB1fKh/images/57040405-multi_tab_chat_ui_guide_chat_cometchat_screens-7e1a444deabe0e7aad3aef7f16fe7f94.png?fit=max&auto=format&n=OcG56TFj2sPB1fKh&q=85&s=bf729872daf599142de1c4efd2cfb76a" 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-subscribed-threads-quoted-reply-pre/Qz_qeaSo94qfhk0f/images/9b672942-multi_tab_chat_ui_guide_user_cometchat_screens-5eec8f08a8fba44e2d8c900c0ce719e4.png?fit=max&auto=format&n=Qz_qeaSo94qfhk0f&q=85&s=27b44e3a483d4ba6ed6654261ab15115" 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-subscribed-threads-quoted-reply-pre/_qQR2QQVMbKKKjU6/images/733a1427-multi_tab_chat_ui_guide_group_cometchat_screens-8b085f56f8edcfee8a5d681a0a3f0e5f.png?fit=max&auto=format&n=_qQR2QQVMbKKKjU6&q=85&s=50a3ebfc4905e8fea7f65cb8201d4e37" 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-subscribed-threads-quoted-reply-pre/wzh7QXpfELBg7wlm/images/3a207066-multi_tab_chat_ui_guide_overview_cometchat_screens-7781f14bb2a16c18336fedd60f737e6e.png?fit=max&auto=format&n=wzh7QXpfELBg7wlm&q=85&s=e1719e0151f89355f7f750c63b8461f4" 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-subscribed-threads-quoted-reply-pre/YKHlaADiDN-yDNW9/images/b7998116-multi_tab_chat_ui_guide_chat_cometchat_screens-a0b8e311f8a7c74cbcbfa05c5905fb87.png?fit=max&auto=format&n=YKHlaADiDN-yDNW9&q=85&s=434ad1f9dc1cc013a0f1fe2ca5351c7d" 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-subscribed-threads-quoted-reply-pre/lwyQRVv2f5FKw5Xr/images/8a616a6a-multi_tab_chat_ui_guide_user_cometchat_screens-5bddf6dbc1719b0ea6cdb3b1ac0d1eeb.png?fit=max&auto=format&n=lwyQRVv2f5FKw5Xr&q=85&s=da0af4f4c4976aacf3916a096053f72c" 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-subscribed-threads-quoted-reply-pre/lDF_aGZ-q0meOzhv/images/1782c8d2-multi_tab_chat_ui_guide_group_cometchat_screens-1ed846f9ce071fc672379406ad5ebaaf.png?fit=max&auto=format&n=lDF_aGZ-q0meOzhv&q=85&s=527b8632bac2ce7a8256d80db63cb466" 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>
