auto_logout 0.0.1
auto_logout: ^0.0.1 copied to clipboard
A simple tool that allows you to log out users after a certain period of inactivity or if the app is sent to the background for a certain amount of time
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add auto_logoutThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
auto_logout: ^0.0.1Alternatively, 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:auto_logout/auto_logout.dart';