date_change_checker 2.1.0
date_change_checker: ^2.1.0 copied to clipboard
A cross-platform Flutter package that detects whether the device's date/time has been changed (automatic date/time is disabled).
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
2.1.0 - 2024-06-30 #
Added #
- Stream Support: Added
dateTimeStatusStream
for real-time monitoring of date/time changes - Real-time UI updates capability with configurable check intervals
- Stream lifecycle management with
disposeStream()
andisStreamActive
methods - Enhanced example app demonstrating both one-time checks and continuous monitoring
Features #
- Stream-based monitoring with automatic periodic checks
- Configurable monitoring intervals (default: 5 seconds)
- Proper resource management and cleanup
- Real-time status updates for improved user experience
2.0.2 - 2024-06-30 #
Fixed #
- Apply dart format to improve code formatting and static analysis score
- Enhanced code readability and consistency
2.0.1 - 2024-06-30 #
Fixed #
- Fixed syntax errors in code structure
- Updated deprecated method usage in internal implementation
- Improved code organization with proper region blocks
2.0.0 - 2024-06-30 #
Changed #
- BREAKING: Renamed
checkAutoDateTimeStatus()
toisDateTimeChanged()
- BREAKING: Changed return type from
AutoDateTimeStatus
enum tobool
- Updated documentation and examples to reflect new API
- Improved method naming for better semantic clarity
Added #
- Backward compatibility for existing method channel implementations
1.0.1 - 2024-06-29 #
Fixed #
- Fixed Android method channel implementation to properly handle
isAutoDateTimeEnabled
method - Resolved MissingPluginException when automatic date/time is disabled on Android devices
- Improved platform-specific implementation with better error handling
1.0.0 - 2024-01-29 #
Added #
- Initial release of date_change_checker package
- Cross-platform support for Android and iOS
DateChangeChecker
class withcheckAutoDateTimeStatus()
methodAutoDateTimeStatus
enum withAUTO_DATE_TIME_ON
andAUTO_DATE_TIME_OFF
values- Android implementation using
Settings.Global.AUTO_TIME
- iOS implementation using
NSTimeZone.autoupdatingCurrent
- Method channel communication between Dart and native platforms
- Comprehensive error handling with
PlatformException
- Complete example application demonstrating package functionality
- Detailed documentation and API reference
- Unit tests for core functionality
Platform Support #
- Android: Minimum API Level 21 (Android 5.0)
- iOS: Minimum iOS 11.0
- Flutter: SDK 3.0.0 or higher
Features #
- No special permissions required
- Lightweight implementation with minimal memory footprint
- Real-time status detection
- Graceful error handling and fallback behavior
- Material Design example UI with status indicators
- User guidance for enabling automatic date/time settings
Technical Details #
- Method channel name:
date_change_checker
- Package structure follows Flutter plugin best practices
- Proper resource cleanup and memory management
- Thread-safe implementation on both platforms
- Comprehensive documentation with usage examples