idle_detector 0.9.0 copy "idle_detector: ^0.9.0" to clipboard
idle_detector: ^0.9.0 copied to clipboard

Detects when a user stops interacting with the app.

This packages provides a widget [IdleDetector] that detects when a user stops interacting with your app.

Usage #

Wrap your app in the [IdleDetector] widget and do something with the callback.

IdleDetector(
    idleTime: const Duration(minutes: 1),
    onIdle: () {
        print('The user has not interacted with the app for 1 minute.');
    },
    child: Center(
        child: Text('Hello World'),
    ),
);
4
likes
130
pub points
52%
popularity

Publisher

verified publishersharpsan.dev

Detects when a user stops interacting with the app.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on idle_detector