> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-docs-new-flutter-push-notifications.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-new-flutter-push-notifications/TsdJP7Z1jcxAJa_C/images/0f009c9e-multi_tab_chat_ui_guide_overview_cometchat_screens-f96decee1c0855206526aa24e9ade1bd.png?fit=max&auto=format&n=TsdJP7Z1jcxAJa_C&q=85&s=c481244ddb662b87a95dafa4fafc8060" 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-new-flutter-push-notifications/ZyNY5PdDYzwmWs7p/images/57040405-multi_tab_chat_ui_guide_chat_cometchat_screens-7e1a444deabe0e7aad3aef7f16fe7f94.png?fit=max&auto=format&n=ZyNY5PdDYzwmWs7p&q=85&s=9e45f28f256022382a14574ffbe18620" 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-new-flutter-push-notifications/W02FPduKyeeUcZim/images/9b672942-multi_tab_chat_ui_guide_user_cometchat_screens-5eec8f08a8fba44e2d8c900c0ce719e4.png?fit=max&auto=format&n=W02FPduKyeeUcZim&q=85&s=64e801198ac708b9adcbb64a9b3d931f" 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-new-flutter-push-notifications/aquK0PeyHDuKF3_H/images/733a1427-multi_tab_chat_ui_guide_group_cometchat_screens-8b085f56f8edcfee8a5d681a0a3f0e5f.png?fit=max&auto=format&n=aquK0PeyHDuKF3_H&q=85&s=377b9375ada3c2b45af1816909ae680a" 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-new-flutter-push-notifications/rV4ZXONU_MlRWUad/images/3a207066-multi_tab_chat_ui_guide_overview_cometchat_screens-7781f14bb2a16c18336fedd60f737e6e.png?fit=max&auto=format&n=rV4ZXONU_MlRWUad&q=85&s=d9eab5f1a9bb9aed0a84d996a897a526" 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-new-flutter-push-notifications/Sdxt-tLBfLmAoR6g/images/b7998116-multi_tab_chat_ui_guide_chat_cometchat_screens-a0b8e311f8a7c74cbcbfa05c5905fb87.png?fit=max&auto=format&n=Sdxt-tLBfLmAoR6g&q=85&s=70a608ff1f133d0d3d3dc22c95345adb" 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-new-flutter-push-notifications/FKS8zk4jpgvc3Ouz/images/8a616a6a-multi_tab_chat_ui_guide_user_cometchat_screens-5bddf6dbc1719b0ea6cdb3b1ac0d1eeb.png?fit=max&auto=format&n=FKS8zk4jpgvc3Ouz&q=85&s=84b3a4eee383a139bff4f5dfea2135e1" 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-new-flutter-push-notifications/O2jl3ui0jGLsP9EB/images/1782c8d2-multi_tab_chat_ui_guide_group_cometchat_screens-1ed846f9ce071fc672379406ad5ebaaf.png?fit=max&auto=format&n=O2jl3ui0jGLsP9EB&q=85&s=63107fdc7746eb79757f61afd049d81c" 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>
