Skip to content

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

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt
Notifications You must be signed in to change notification settings

ankesh-kumar/Flutter-chat

Repository files navigation

flutter_chat

A Chat Helper for Flutter using Firebase as backend services.

Getting Started

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

flutter_chat: ^0.1.4

You can install packages from the command line:
with Flutter:
$ flutter pub get

Use ChatData.dart for start building your chat.

You can use your own widget in Stateful Widget Class.
Steps:

  1. add firebase in your android and ios project
  2. Create a Stateful widget class and call the method in body
    within initState():
    ChatData.init("app name",context);
  3. and in body of Widget build:
    ChatData.widgetWelcomeScreen(context)

Useful Methods:

Auth user from Google SignIn, if user is using app first time,
then user data store in firestore in "users" document,
send true if authenticated,else false
##authUsersGoogle() → Future

check if user is loggedin in app

isSignedIn() → Future

Check user authentication, if authenticated then show dashboard screen, else login screen

authUser(BuildContext context) → void

used to create splash screen, shows splash for 2 sec and then call to check authentication

startTime(BuildContext context) → Future

Now enjoy the chat.

About

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

Topics

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 2

  •  
  •