login 1.1.2 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';