idle_logout 2.2.1
idle_logout: ^2.2.1 copied to clipboard
Automatic inactivity-based logout/lock trigger for Flutter applications with configurable timeout.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add idle_logoutWith Flutter:
$ flutter pub add idle_logoutThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
idle_logout: ^2.2.1Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:idle_logout/idle_logout.dart';