This project contains sample code to connect to an application using Flutter and Firebase. As more auth methods will be implemented, the examples will be added.
The aim of this repois to help Flutter developers to easily add a login solution to their apps and also to provide an example of what a login page could looks like.
Take a look at Brandon Donnelson's video at the following link : https://youtu.be/t_SgDznY99k
Or follow the following steps :
- In Firebase, create a new project and add a new Android app
- Enter your app id (same as
applicationIdin the directoryandroid/app/build.gradle) - Enter a name for your app
- Enter your SHA-1 key, you can get it with the following command :
keytool -exportcert -list -v -alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore
- Add this line in your
android/build.gradlefile in the dependencies
classpath 'com.google.gms:google-services:3.0.0'
- Add this line in your
android/app/build.gradleat the bottom of your file, add the line
apply plugin: 'com.google.gms.google-services'
-
Copy the
google-services.jsonin theandroid/app/srcdirectory. You can get this file on your firebase app. -
And don't forget to allow the auth methods you want in your Firebase app.
Now your app is linked to Firebase.
Take a look at Brandon Donnelson's video at the following link : https://youtu.be/DrarVlOMg2c
TODO : Write step to step tutorial
If you wish to contribute to this repository, feel free to create a branch and make a pull request !
In order to prevent full file rewrite between Windows and Unix systems, please set your git config auto.crlf parameter to false using the following line.
cd myProject
git config --global core.autocrlf false
NB : the --global is not mandatory but it prevents havingthe same problems with other projects.
Alexi Coard <alexicoard[at]gmail.com>
- iOS firebase link
- More auth methods.