ankesh-kumar/Flutter-chat
Android, iOS 및 웹 플랫폼용 Flutter 채팅 애플리케이션으로, Firebase를 사용하여 Google 로그인/가입을 지원하고 텍스트, 이모지, 이미지를 교환할 수 있으며 사용자 온라인 기능을 포함합니다.
- Stars
- 119
- Forks
- 32
- 최근 푸시(UTC)
- 2022. 4. 2.
- 프로젝트 상태
- 활성
기술 주제
사용 중인 의존성
의존성 목록 23 개
- flutter
{"sdk":"flutter"} - cupertino_icons
^1.0.0 - shared_preferences
^2.0.3 - firebase_core
^1.0.1 - firebase_auth
^1.0.1 - firebase_storage
^8.0.0 - cloud_firestore
^2.2.2 - fluttertoast
^7.1.8 - photo_view
^0.11.1 - google_sign_in
^5.0.0 - flutter_native_image
^0.0.4 - cached_network_image
^2.5.1 - intl
^0.17.0 - firebase_database
^6.0.0 - image_picker
^0.7.2+1 - image_picker_for_web
^2.0.0 - path
^1.8.0 - firebase_messaging
^10.0.0 - flutter_local_notifications
^5.0.0+2 - url_launcher
^6.0.2 - flutter_linkify
^4.0.2 - http
^0.13.0 - flutter_test개발 의존성
{"sdk":"flutter"}
원본 README
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
README 펼치기 / 접기
flutter_chat
A Chat Helper for create chat application in Flutter using Firebase as backend services.
Checkout Android app Demo
Checkout 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 ☕️
https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png
Features:
- 1-1 chat.
- Chat with only added friends(Privacy). New
- Share Pic with Gallery/Camera
- User online status
- Flutter web supported
Next Future Scope
- Notification
- Group Chat
- User acceptance on chat request
- 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