google_one_tap_sign_in 1.0.0 copy "google_one_tap_sign_in: ^1.0.0" to clipboard
google_one_tap_sign_in: ^1.0.0 copied to clipboard

outdated

Google One Tap Sign In (Android)

Screenshoot

Google One Tap Sign In #

Google One Tap Sign In (Android)

A Flutter Plugin for Google One Tap Sign In

Getting Started #

To access Google Sign-In, you'll need to make sure to register your application.

  • Add to your pubspec.yaml

    dependencies:  
      google_one_tap_sign_in: [any]
    
  • Add Google Service

    classpath 'com.google.gms:google-services:[x.x.x]'
    
  • Import plugin

    import 'package:google_one_tap_sign_in/google_one_tap_sign_in.dart';
    
  • Handle Method

    // Your Web Client Id  
    final String _webClientId = "[XXXXXXXXXXX]";
    void _onSignIn() async {
        var data = await GoogleOneTapSignIn.startSignIn(webClientId: _webClientId);
        if (data != null) {
          // Whatever you do with [SignInResult] data
          print("Id Token : ${data.idToken ?? "-"}");
          print("ID : ${data.id ?? "-"}");
        }
    }
    

Example #

Find the example wiring in the Google One Tap Sign In

32
likes
0
pub points
75%
popularity

Publisher

unverified uploader

Google One Tap Sign In (Android)

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on google_one_tap_sign_in