Flutter Firechat
- Create a new Flutter project via Flutter Docs
- Create a new Firebase project
- Enable Google Authentication and Firestore
- Add a new Firebase Android app
- Follow the Android SDK installation instructions
- Download the google-services.json file and add it into the project’s android/app folder
- Install the packages for firebase, google sign in, and provider:
flutter pub add firebase_core firebase_auth google_sign_in cloud_firestore provider
- Create new files in the ‘lib’ folder called ‘auth_provider.dart’, ‘bottom_chat_bar.dart’, ‘home_screen.dart’, ‘landing_screen.dart’, ‘loading.dart’, and ‘styles.dart’
- Add the code for ‘auth_provider.dart’, ‘bottom_chat_bar.dart’, ‘home_screen.dart’, ‘landing_screen.dart’, ‘loading.dart’, ‘styles.dart’ and main.dart
- Auth logic and initialization lives in the ‘auth_provider.dart’ and ‘main.dart’ files
GitHub
https://github.com/fireship-io/firechat-flutter