A Chat Helper for Flutter using Firebase as backend services.
Add this to your package's pubspec.yaml file:
dependencies:
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:
- 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)
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
Check user authentication, if authenticated then show dashboard screen, else login screen
used to create splash screen, shows splash for 2 sec and then call to check authentication
Now enjoy the chat.