Skip to content
Ankesh Kumar edited this page Feb 5, 2020 · 2 revisions

Welcome to the Flutter-chat wiki!

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.5

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

Use ChatData.dart for start building your chat.

Features:

1-1 chat User online status You can use your own widget in Stateful Widget Class. Steps:

add firebase in your android and ios project Create a Stateful widget class and call the method in body within initState(): -> ChatData.init(“app name”,context); and in body of Widget build: -> ChatData.widgetWelcomeScreen(context) You can use common methods for your application:

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 with social 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.

Next Scope:

  • Share and Add Contact
  • Chat acceptance
  • Media File support (pdf and video)
  • Location share
  • Emoji support
Clone this wiki locally