Flutter Firebase Auth MVVM by AZ Ackmatoff.
Email sign in and create
Google sign in
Facebook login
Simple Firestore CRUD
Things you need to do after having done with cloning the project:
- Android setups
- Create a firebase project
- Get your google-services.json
- Add your google-services.json under android/app/ directory
- Do not forget to modify both project level and app level build.gradle files
- iOS setups are not configured, if you wish, you can do them yourself and feel free to PR.
- Firebase Console works
- Enable email, google, facebook sign-in providers under Authentication/Sign-in method
- In order to enable Facebook, you need to create a Facebook App and get your App ID and Secret Key here: https://developers.facebook.com/
- Do not forget to add Android and iOS as platforms and to take care of needed modifications
- The packages I'm using are*:
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.3
firebase_core: ^0.5.0
cloud_firestore: ^0.14.0
firebase_auth: ^0.18.0
flutter_facebook_login: ^3.0.0
google_sign_in: ^4.5.1
provider: ^4.3.2
get_it: ^4.0.4
*NOTE: Do not forget to configure Android and iOS related setups of needed packages
For Google Sign In: do not forget to get your SHA-1 key and add it to your firebase project!
For Facebook Login: do not forget to get your SHA-1 key, convert its value to base64 (http://tomeko.net/online_tools/hex_to_base64.php), and add it to your facebook project (https://developers.facebook.com/docs/facebook-login/android)!
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.