पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

apptex_chat कवर
पैकेज विवरणv2.0.0

apptex_chat

यह पैकेज चैट सिस्टम को अधिक आसान और उपयोगकर्ता-अनुकूल बनाने के लिए है, और एक क्लिक में चैट विशेषताओं को नियंत्रित करें।

30-दिन डाउनलोड
81
लाइक
15
Pub अंक
60

पैकेज इंस्टॉल करें

flutter pub add apptex_chat

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

Apptex Chat एक Flutter पैकेज है जिसका उद्देश्य ऐप में चैट सिस्टम के कार्यान्वयन को सरल बनाना है। इसमें एक सुविधाजनक, उपयोगकर्ता-अनुकूल इंटरफेस है और डेवलपर्स को चैट फीचर्स को न्यूनतम प्रयास के साथ प्रबंधित करने में सक्षम बनाता है—आमतौर पर केवल एक क्लिक से। एक सुगम एकीकरण के लिए बनाया गया, यह सामान्य चैट कार्यों जैसे संदेश भेजना, टाइपिंग इंडिकेटर और संदेश इतिहास को आसान बनाता है। इस पैकेज का लक्ष्य विकास समय को कम करना है जबकि एक साफ और प्रतिक्रियाशील डिजाइन बनाए रखना है। यह वास्तविक समय संचार की आवश्यकता वाले ऐप्स के लिए आदर्श है जिनमें विस्तृत कस्टम कोडिंग की आवश्यकता नहीं होती है।

उपयोग

  • इंस्टेंट मैसेजिंग ऐप्स
  • ग्राहक समर्थन चैट इंटरफेस
  • एप में पीयर-टू-पीयर संचार
  • रियल-टाइम सहयोग उपकरण
  • आंतरिक टीम संदेश प्रणाली

मुख्य विशेषताएँ

  • एक क्लिक फीचर नियंत्रण
  • पूर्व-निर्मित चैट UI घटक
  • Firebase या अन्य बैकएंड के साथ आसान एकीकरण
  • संदेश इतिहास और डिलीवरी स्थिति का समर्थन
  • कस्टमाइज़ेबल थीम और स्टाइलिंग

इनके लिए उपयुक्त

  • त्वरित चैट कार्यान्वयन की खोज कर रहे विकासकर्ता
  • हल्का चैट कार्यक्षमता चाहने वाले ऐप्स
  • चैट फीचर्स के साथ MVP बनाने वाली टीमें
  • विकासक उत्पादकता पर ध्यान केंद्रित परियोजनाएं

विचार योग्य बातें

  • प्रदान किए गए थीम्स के आगे सीमित कस्टमाइजेशन
  • बाहरी बैकएंड सेवाओं पर निर्भर
  • कोई बिल्ट-इन प्रमाणीकरण नहीं है
  • उन्नत विशेषताओं के लिए अतिरिक्त सेटअप की आवश्यकता हो सकती है

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

This package is a powerful and versatile solution for implementing real-time chat functionality in your Flutter applications. Built on Firebase Firestore and Firebase Cloud, this package provides a unique and pre-designed chatting system with features such as push notifications and a customizable theme for the Inbox Screen and Chat Screen.

Platform Tested : Result OK

Android iOS macOS Web Linux Windows
✔ ✔ :x: :x: :x: :x:

Key Features

  • Easy to use: The package offers a straightforward implementation process, allowing you to integrate chat functionality seamlessly into your app.
  • Direct Integration: Firebase Firestore and Firebase Cloud are directly integrated, ensuring reliable and efficient communication between users.
  • Pre-Build UI: The package comes with a pre-built user interface for the chat screens, eliminating the need for extensive design work.
  • Start Chat with a Single Function: Initiating a chat is as simple as calling a single function, enabling users to connect and communicate quickly.
  • Customizable Themes: Both the Home Screen and Chat Screen can be customized to match your app's design and branding.

Gallery

Installation

To get started, add the following dependency to your pubspec.yaml file:

dependencies:
  apptex_chat: ^2.0.0

Then, run flutter pub get to install the package.

Usage

Step 1 : Firebase Configuration

  1. Install Firebase in your project
  2. Download google-services.json and GoogleService-Info.plist file for your project from firebase.
  3. Inilize firebase in the main function.

Step 2 : User Authentication

To enable chat functionality, you need to authenticate users. When a user signs up or logs in, you can pass their information to AppTexChat using the initChat method.

// Here you can set the current user to the Apptex chat
AppTexChat.instance.initChat(
 currentUser: ChatUserModel(
   uid: "{uid}",
   profileUrl: "{Profile url}",
   name: "{Currect User Name}",
   fcmToken: "{Fcm Token}", //Pass empty string if you don't have fcm token
 ),
);

Replace Current User Name, uid, profile URL, and Fcm Token with the corresponding values for the user.

Step 3 : Starting a Chat

To start a chat with another user, call the startNewConversationWith function:

//Here you need to pass the other user's info
AppTexChat.instance.startNewConversationWith(
  ChatUserModel(
    uid: "Other user uid",
    profileUrl: 'Other user profile',
    name: 'Other user name',
    fcmToken: 'Other user fcm token',
  ),
);

Show Conversations on Inbox Screen

To see a list of all the conversations, use the ConversationsScreen widget. It has a builder parameter which gives you the flexibility to list the conversation according to your app's design.

// Example 
ConversationsScreen(
  builder: (conversations, isLoading) => ListView.separated(
    separatorBuilder: (context, index) => SizedBox(height: 20),
    shrinkWrap: true,
    padding: EdgeInsets.symmetric(horizontal: 10, vertical: 10),
    itemCount: conversations.length,
    itemBuilder: (context, index) => Container(
      decoration: BoxDecoration(
        borderRadius: BorderRadius.circular(10),
        color: Colors.white,
        boxShadow: [
          BoxShadow(
            color: Colors.grey.withOpacity(0.5),
            spreadRadius: 1,
            blurRadius: 2,
            offset: Offset(0, 1),
          )
        ],
      ),
      padding: EdgeInsets.all(10),
      child: ListTile(
        onTap: () {
          //TODO: Navigate to chat screen
        },
        leading: CircleAvatar(
          backgroundImage:
              NetworkImage(conversations[index].otherUser.profileUrl ?? ''),
        ),
        title: Text(conversations[index].otherUser.name),
        subtitle: Text(conversations[index].lastMessage),
        trailing: Container(
          padding: EdgeInsets.all(5),
          decoration: BoxDecoration(
            color: Colors.blue,
            shape: BoxShape.circle,
          ),
          child: Text(
            conversations[index].unreadMessageCount.toString(),
            style: TextStyle(color: Colors.white),
          ),
        ),
      ),
    ),
  ),
);

Display messages of a specific chat

To see messages of a specific conversation, use the ChatScreen widget. It has an appBarBuilder(required) and bubbleBuilder(optional) parameter which gives you the flexibility to create custom appbar and chat bubbles according to your app's design.

ChatScreen(
 conversationModel: conversationModel, 
 showMicButton: false, //It is true by default, set it to false if you don't want voice messages
 appBarBuilder: ((currentUser, otherUser) => AppBar()), //Builder to create custom AppBar
);

Features Status

  1. Chating ✅
  2. Voice messages ✅
  3. Images ✅
  4. Emojis ✅
  5. Videos 🚫
  6. Document 🚫
  7. Location 🚫

Additional information

More is about to Come:

Features that will be added later:

  1. Push Notifications
  2. Make it for web

Frameworks Used

  1. Firebase Firestore
  2. Firebase Cloud storage

Contributors


Sayed Muhammad Idrees

💻 🎨

Shah Raza

💻

Jamshid Ali

💻

Afaq Zahir

💻

Help Maintenance

Buy Me A Coffee

श्रेणियाँ

निर्भरताएँ

निर्भरता सूची 9 आइटम

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।