idle_activity_detector 0.1.1-dev.2
idle_activity_detector: ^0.1.1-dev.2 copied to clipboard
A Flutter package for detecting user idle and activity states with comprehensive browser event detection (mouse, keyboard, scroll, touch) and configurable timeouts.
Changelog #
All notable changes to this project will be documented in this file.
0.1.1-dev.2 - 2025-12-24 #
Added #
- Improved idle detection smoothing algorithm to reduce false positives on short pauses.
- Added basic integration tests for activity detection pipeline.
- Added a small CLI flag (--sensitivity) to tweak detection sensitivity at runtime.
Changed #
- Adjusted default sensitivity to be less aggressive.
- Refactored idle state handling to make state transitions clearer and easier to test.
- Updated README with quick start and CLI usage notes.
Fixed #
- Fixed issue where rapid input events could leave detector stuck in "idle" state.
- Fixed an edge case in timestamp handling that caused drift when system time changed.
Chore #
- Bumped dev dependencies and lint rules.
- Added CHANGELOG.md and updated contributing notes.
0.1.1-dev.1 - 2025-12-10 #
Added #
- Comprehensive Makefile build automation (43 commands)
- GitHub Actions CI/CD workflows
- Multi-platform testing support
- Automated publishing workflow
- .pubignore configuration
Changed #
- Updated .gitignore with comprehensive best practices
- Streamlined documentation (removed redundant files)
- Improved project structure
Removed #
- Helper scripts (functionality integrated into Makefile)
- Redundant documentation files
0.1.0 - 2025-12-24 #
Added #
- Initial release of idle_activity_detector
- Comprehensive browser event detection system
- Mouse movement detection (mousemove event)
- Mouse click detection (mousedown, click events)
- Keyboard input detection (keydown event)
- Scroll detection (scroll event)
- Touch gesture detection (touchstart, touchmove events)
- Navigation detection (route/history events)
- Visibility detection (visibilitychange event)
- Window focus detection (focus, blur events)
- IdleActivityController for external state access
- Enhanced IdleConfig with 9 configurable detection options
- Complete API documentation with dart doc
- Browser event mapping documentation
- Comprehensive example app with 2-page navigation
- 18 comprehensive unit and widget tests
Technical Details #
- Dart SDK: >=3.0.0 <4.0.0
- Flutter SDK: >=1.17.0
- Zero external dependencies
- 100% null-safe
- Cross-platform support: Android, iOS, Web, Windows, macOS, Linux