firebase_sign_in 0.0.4 copy "firebase_sign_in: ^0.0.4" to clipboard
firebase_sign_in: ^0.0.4 copied to clipboard

outdated

firebase google sign-in all methods in Flutter package project.

#Firebase_sign_in

Soacial singin package lets you all necessary methods to your Flutter app.

Installation #

  1. Add the latest version of package to your pubspec.yaml (and rundart pub get):
dependencies:
  firebase_sign_in: ^0.0.4
  1. Import the package and use it in your Flutter App.
import 'google_apple_sign_in/sociallogin.dart';

class FirebaseSetup {

  GoogleSignIn _googleSignIn = GoogleSignIn(
    scopes: [
      'email', // Request email access
    ],
  );

  static Future<FirebaseApp> initializeFirebase() async {
    FirebaseApp firebaseApp = await Firebase.initializeApp();
    return firebaseApp;
  }


  Future<GoogleSignInAccount?> _googleSignin() async {
    try {
      final account = await _googleSignIn.signIn();
      // Handle the signed-in user account
      return account;
    } catch (error) {
      print('Sign-In Error: $error');
      return null;
    }
  }

  signout() {
    _googleSignIn.signOut();
  }

}

0
likes
0
points
60
downloads

Publisher

unverified uploader

Weekly Downloads

firebase google sign-in all methods in Flutter package project.

Repository (GitLab)
View/report issues

License

unknown (license)

Dependencies

firebase_auth, firebase_core, flutter, google_sign_in, google_sign_in_web

More

Packages that depend on firebase_sign_in