Created
January 23, 2022 20:23
-
-
Save JrogeT/443222e61e6b1ef50fbe6deef7630564 to your computer and use it in GitHub Desktop.
Flutter Google Login
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
check if all your current project dependencies support null safety by using: | |
```dart pub outdated --mode=null-safety``` | |
Then, run the following command to migrate: | |
```dart migrate``` | |
Add these dependencies to your `pubspec.yaml` | |
firebase_core: ^1.0.1 | |
firebase_auth: ^1.0.1 | |
google_sign_in: ^5.0.0 | |
Then update packages: | |
```flutter packages get``` | |
Go to the Firebase console | |
- create a project | |
- set up for android | |
- android package same as yours | |
- SHA-1 got it with: | |
- java keytool (It's in "C:\Program Files\Java\jdk1.8.0_321\bin") | |
- ```keytool -list -v -alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore``` default pwd: android | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment