login 1.1.2 copy "login: ^1.1.2" to clipboard
login: ^1.1.2 copied to clipboard

Show content depending on whether or not the user is logged in. Simply provide two arguments - a Widget to display when logged in, one to display when not.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add login

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  login: ^1.1.2

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:login/login.dart';
9
likes
40
pub points
62%
popularity

Publisher

unverified uploader

Show content depending on whether or not the user is logged in. Simply provide two arguments - a Widget to display when logged in, one to display when not.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

firebase_auth, flutter, google_sign_in

More

Packages that depend on login