パッケージ、リポジトリ、アプリカテゴリを検索

firebase_chat のカバー
パッケージ詳細v0.0.6+1

firebase_chat

Cloud Firestore用の完全機能パッケージで、アプリケーションにチャットを実装しやすくします

30日間ダウンロード
16
いいね数
32
Pub ポイント
50

パッケージをインストール

flutter pub add firebase_chat

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Cloud Firestore を使用してチャット機能を実装するのを簡単にする完全に機能する Flutter パッケージです。リアルタイムメッセージング、メッセージの永続性、ユーザーのオンライン状態を最小限の設定で管理するための使いやすいコンポーネントとユーティリティを提供します。Firebase とのシームレスな統合を目的としており、メッセージの送受信、入力中の表示、読み取り確認といった一般的なチャットパターンを処理します。ボイラープレートコードを書かずにアプリに堅牢なチャット機能を迅速に追加したい開発者に最適です。

用途

  • リアルタイムメッセージングアプリ
  • カスタマーサポートチャットインターフェース
  • チームコラボレーションツール
  • アプリ内メッセージングシステム
  • ソーシャルネットワーキングアプリ

主な機能

  • 事前構築されたチャットUIコンポーネント
  • リアルタイムメッセージ同期
  • 入力インジケーターと既読通知
  • Cloud Firestore を用いたメッセージの永続化
  • Firebase認証との簡単な統合

適している対象

  • チャット機能付きアプリを開発する開発者
  • 迅速なチャット実装が必要なスタートアップ
  • リアルタイム通信を必要とするアプリ
  • Firebase をベースとしたプロジェクト
  • チャット機能のプロトタイピング

注意事項

  • Firebase Cloud Firestore のセットアップが必要です
  • ソースコードを変更せずにカスタマイズできる範囲が限られている
  • Firebase認証に依存しています
  • 大規模なグループチャットに最適化されていません
  • 組み込みのメディアアップロードサポートなし

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Firebase Chat🔥💬

⛏️ Getting started

To get started with Firebase, please see the documentation available at https://firebase.flutter.dev/docs/overview

Add Firebase Chat to your project by following the instructions on the install page and start using it:

import 'package:firebase_chat/firebase_chat.dart';

📱 Example

Extend your StatefulWidget
class ChatPage extends BaseChat {
  ChatPage({
    @required ChatEntity entity,
  }) : super(entity);

  @override
  _ChatPageState createState() => _ChatPageState();
}

class _ChatPageState extends BaseChatState<ChatPage> {
...
Override Methods and Properties

You can checkout example file

Widget inputBuilder(BuildContext context, ChatInputState state);
Future editAndUpload(Uint8List data);
Future getImage();

Widget get emptyWidget;
Widget get errorWidget;
Widget get loadingWidget;
Color  get primaryColor;
Color  get secondaryColor;

Models 📦

Peer User 👨
Fields
  • id - user Id
  • image - user image url
  • name - user display name
Constructors
  • PeerUser({this.id, this.image, this.name})
  • PeerUser.fromSnapshot(DocumentSnapshot snap)
Chat Entity 📩
Fields
  • mainUser - logged in user
  • peers - Map of users <user ID, PeerUser>
  • lastMessage - last sent message
  • title - name of the chat (You can name group chats, can be nullable)

License ⚖️

Issues and feedback 💭

If you have any suggestion for including a feature or if something doesn't work, feel free to open a Github issue for us to have a discussion on it.

カテゴリー

依存関係

依存関係一覧 10 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。