搜尋套件、儲存庫與 APP 分類

GitHub 儲存庫tedcrimson/firebase_chat

firebase_chat

tedcrimson/firebase_chat open-source repository details.

firebase_chat 專案封面
星標
6
分支
5
最近推送(UTC)
2023年6月25日
專案狀態
未封存

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

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.

Tedo Makharadze GitHub avatar
GitHub 作者

Tedo Makharadze ↗

@StrangeLoopGames Tbilisi, Georgia
語言Dart

此儲存庫發佈的套件

使用的依賴

依賴清單 11 項

如何選擇適合專案的儲存庫?

先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。

  1. 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
  2. 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
  3. 使用前在 GitHub 確認 README、授權條款與 Issues。

來源與維護

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗