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

Platformweb

Chrome/Firefox extension Google sign-in library base on `LazySignIn``

Google sign-in library for extension using lazy_sign_in interface.

Support Browser #

lazy_sign_in_extension auto detect browser and use api accordingly.

Browser Identity API
Chrome chrome.identity
Firefox browser.identity
Orion browser.identity

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.signIn(),
  child: const Text('Sign-In'),
);

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

Web/App

Use lazy_sign_in_google

Example #

You will have to supply your own clientId accordingly.

1
likes
150
points
73
downloads

Publisher

verified publisherjsiu.dev

Weekly Downloads

Chrome/Firefox extension Google sign-in library base on `LazySignIn``

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, http, js, lazy_extensions, lazy_log, lazy_sign_in

More

Packages that depend on lazy_sign_in_extension