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

outdated

Chrome/Firefox extension Google sign-in library

Google sign-in library for Chrome extension and Firefox extension using lazy_sign_in interface.

Install #

flutter pub add lazy_sign_in_extension

Usage #

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

One Interface/Api

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

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

Web/App

Use lazy_sign_in_google

Example #

You will have to supply your own clientId accordingly.