firebase_sign_in

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

firebase sign in

#Firebase_sign_in
Soacial singin package lets you all necessary methods to your Flutter app.
How to integrate in android #
Step 1: Configure Firebase project.
Go to the Firebase console (https://console.firebase.google.com/) and create a new Firebase project or use an existing project.
Add an Android app to your Firebase project and follow the instructions to download the 'google-services.json' file.
Place the 'google-services.json' file in the android/app directory of your Flutter project.
Step 2: Configure Android app
Open the android/build.gradle file and add the following under the dependencies section:
classpath 'com.google.gms:google-services:4.3.10'
copied to clipboard
Open the android/app/build.gradle file and add the following at the bottom:
apply plugin: 'com.google.gms.google-services'
copied to clipboard
Step 3: Firebase initialized in your main function.
Step 4: Implement the sign-in logic
How to integrate in iOS #
Step 1: Configure Firebase project
Go to the Firebase console (https://console.firebase.google.com/) and create a new Firebase project or use an existing project.
Add an iOS app to your Firebase project and follow the instructions to download the 'GoogleService-Info.plist' file.
Place the 'GoogleService-Info.plist' file in the ios/Runner directory of your Flutter project.
Step 2: Configure iOS app
Open Xcode and navigate to your Flutter project's ios/Runner directory. Open the Runner.xcworkspace file.
In Xcode, select the "Runner" project in the project navigator on the left. Then, select the "Runner" target and navigate to the "Signing & Capabilities" tab.
Enable the "Sign in with Apple" capability if it's not already enabled.
Step 3: Firebase initialized in your main function.
Step 4: Implement the sign-in logic
Installation #

Add the latest version of package to your pubspec.yaml (and rundart pub get):

dependencies:
firebase_sign_in: ^0.0.16
copied to clipboard

Import the package and use it in your Flutter App.

import 'package:firebase_sign_in/sociallogin.dart';
copied to clipboard
Usage #

we have to initialized using initialize method.

FirebaseSetup.initialize(types: [SignupType.google,SignupType.apple]);
copied to clipboard

we need to initialized FirebaseSetup class. and then use signin and signout methods.

FirebaseSetup firebaseSetup = FirebaseSetup(scopes: ['email']);
firebaseSetup.signin(type: SignupType.google);
firebaseSetup.signout(type: SignupType.google);
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.