system_date_time_change 0.0.1
system_date_time_change: ^0.0.1 copied to clipboard
A Flutter plugin to detect manual changes to device date/time and timezone mismatches across all platforms.
0.0.1 #
Initial Release
Features #
- ✅ Real-time detection of system date/time changes
- ✅ Stream-based event notifications for time changes
- ✅ Manual polling support with
checkDateTimeStatus() - ✅ Detect manual time modifications
- ✅ Identify timezone mismatches
- ✅ Check auto-time settings status (where available)
- ✅ Cross-platform support:
- Android (BroadcastReceiver-based)
- iOS (Notification-based)
- macOS (Notification-based)
- Windows (WM_TIMECHANGE message)
- Linux (Polling-based)
- Web (Polling-based)
Platform Capabilities #
- Android: Full support with BroadcastReceivers and Settings API
- iOS: Real-time notifications (limited auto-time detection)
- macOS: Real-time notifications with NSSystemClockDidChange
- Windows: Native WM_TIMECHANGE message handling
- Linux: Polling mechanism with timezone file monitoring
- Web: Basic polling-based detection
API #
checkDateTimeStatus()- Get current date/time statusonDateTimeChanged- Stream of date/time change eventsstartListening()- Start monitoring time changesstopListening()- Stop monitoring time changes
Models #
DateTimeChangeEvent- Event data for time changesDateTimeChangeStatus- Complete status information
Notes #
- Uses native platform APIs only (no external dependencies)
- Respects platform security and privacy restrictions
- Example app included with comprehensive UI