lazy_sign_in_google 2.1.2 copy "lazy_sign_in_google: ^2.1.2" to clipboard
lazy_sign_in_google: ^2.1.2 copied to clipboard

[google_sign_in] wrapper using [lazy_sign_in] interface. Support web and app Google sign in.

google_sign_in wrapped in lazy_sign_in interface.

Features #

Class File Description
[lazy.SignInGoogle] lazy_sign_in_google.dart Support Google sign-in in web or app. This is a wrapper of package:google_sign_in

Install #

flutter pub add lazy_sign_in_google

Usage #

Web/App

For web page, supply Google OAuth Web Application client id.

For standalone app, supply Google OAuth Chrome Application client id.

import 'package:lazy_sign_in_google/lazy_sign_in_google.dart' as lazy;
const String clientId = 'Google CHROME/WEB APP Client Id';
final lazy.SignInBase globalLazySignIn = lazy.SignInGoogle(clientId: clientId);

One Interface/Api

Widget buttonSignIn = TextButton(
  onPressed: () => globalLazySignIn.signIn(),
  child: const Text('Sign-In'),
);

Widget buttonSignOut = TextButton(
  onPressed: () => globalLazySignIn.signOut(),
  child: const Text('Sign-Out'),
);

Chrome/Firefox Extension

lazy_sign_in_extension

Example #

You will have to supply your own clientId accordingly.

1
likes
140
pub points
31%
popularity

Publisher

verified publisherjsiu.dev

[google_sign_in] wrapper using [lazy_sign_in] interface. Support web and app Google sign in.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, google_sign_in, http, lazy_log, lazy_sign_in

More

Packages that depend on lazy_sign_in_google