GithubHelp home page GithubHelp logo

ankesh-kumar / flutter-chat Goto Github PK

View Code? Open in Web Editor NEW
115.0 3.0 34.0 189 KB

A Flutter Chat application, for android, ios and web platform, using Firebase for Google Sign In/Sign Up and exchange text, emoji and images, include user online feature

Home Page: https://pub.dev/packages/flutter_chat

License: MIT License

Dart 98.61% JavaScript 1.39%
chat flutter flutter-chat flutter-chat-app chat-sdk flutter-firebase flutterpackage messenger firestore chatapp

flutter-chat's Introduction

flutter_chat

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

Checkout Android app Demo

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

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,
<script> // Your web app's Firebase configuration var firebaseConfig = { ..... .... } </script>

Enjoy Fluttering

flutter-chat's People

Contributors

ankesh-kumar avatar ankeshkumar-sitfit avatar averyanalex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

flutter-chat's Issues

i am getting an error about photo_view:

i have tried to change the verion of photo_view: but it dose not support with the package please help thanks

/J:/flutter_windows_1.17.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/photo_view-0.11.1/lib/src/core/photo_view_gesture_detector.dart:106:29: Error: The argument type 'PointerEvent' can't be assigned to the parameter type 'PointerDownEvent'.

  • 'PointerEvent' is from 'package:flutter/src/gestures/events.dart' ('/J:/flutter_windows_1.17.5-stable/flutter/packages/flutter/lib/src/gestures/events.dart').
  • 'PointerDownEvent' is from 'package:flutter/src/gestures/events.dart' ('/J:/flutter_windows_1.17.5-stable/flutter/packages/flutter/lib/src/gestures/events.dart').
    super.addAllowedPointer(event);

Firebase config?

I have just installed this project, and after tapping "just chat" I am getting

D/FirebaseAuth(22592): Notifying id token listeners about user ( XFGQ7Uqjh6bNyPweJoNKngU4CTt1 ).
W/RepoOperation(22592): setValue at /status/XFGQ7Uqjh6bNyPweJoNKngU4CTt1 failed: DatabaseError: Permission denied
E/flutter (22592): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(-3, Permission denied, )

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Does this project support private user to user flutter chat?

Hello,

Does this project support private user to user chat?
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Flutter chat

Can anyone show me how can I ingrate this chat with my app?
I need to remove the sign-in with google and automatically need to sign with my user and the documentation to do the things in cloud firestore.

Can any one can help me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.