FLUTTER ECOSYSTEM

ankesh-kumar/Flutter-chat

一個適用於 Android、iOS 和 Web 平台的 Flutter 聊天應用,使用 Firebase 實現 Google 登入/註冊,並支援文字、表情符號和圖片交換,包含使用者在線功能。

Flutter-chat 專案封面
Stars
119
Forks
32
最近推送(UTC)
2022年4月2日
專案狀態
未封存
Ankesh Kumar GitHub avatar
GITHUB User

Ankesh Kumar ↗

Android Developer | Flutter | Machine Learning enthusiastic

Ranchi, Jharkhand India
語言DartJavaScript

技術主題

使用的依賴

依賴清單 23 項

原始 README

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

展開 / 收合專案 README

flutter_chat

A Chat Helper for create chat application in Flutter using Firebase as backend services.

Checkout Android app Demo

https://1.bp.blogspot.com/-wBzKHsSOXqo/YNBgNi4nGtI/AAAAAAAAQBc/8CNU9jwS9s8MxykqmkxyD1QOY7FnI_OdwCLcBGAsYHQ/s320/play_store_image.png

Checkout Web Demo

Just Chat Web Demo

Support Development

If you found this project helpful or you learned something from the source code and want to thank me, consider buying me a cup of ☕️

PayPal

https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png

Features:

  1. 1-1 chat.
  2. Chat with only added friends(Privacy). New
  3. Share Pic with Gallery/Camera
  4. User online status
  5. Flutter web supported

Next Future Scope

  1. Notification
  2. Group Chat
  3. User acceptance on chat request
  4. share location on chat

Screenshots:

login screen user screen chat screen

Getting Started

  • Add this to your package's pubspec.yaml file:
    dependencies:
    flutter_chat

  • Add firebase in your android and ios project.

  • Security Rules for Storage:

    rules_version = '2'; service firebase.storage { match /b/{bucket}/o { match /{allPaths=**} { allow read, write: if request.auth != null; } } }

  • Security Rules for Cloud fireStore:

    service cloud.firestore { match /databases/{database}/documents { match /{document=**} { allow read, write: if request.auth != null; } } }

  • You can modify the security rules as your need.

  • Deploy "Cloud Function" on firebase. (provided on cloudFunction folder, used for show user online/offline status).

  • Create a Stateful widget class and call the method in body (example can be found in Github repo),
    within initState():
    -> ChatData.init("app name",context);
    and in body of Widget build:
    -> ChatData.widgetWelcomeScreen(context)

Flutter Web

  • If want to run Flutter-Chat project, on web Go to App, Firebase->Settings and then add new app, web Follow the instructions, Put the firebaseConfig script on index.html in web folder,

Enjoy Fluttering