datetime_loop 1.4.0
datetime_loop: ^1.4.0 copied to clipboard
A Flutter package that provides a widget to listen to the system's datetime and trigger a rebuild based on the specified time unit.
1.4.0 - 2025-10-24 #
- Refactored
DateTimeLoopControllerto useTimerfor periodic updates instead of awhileloop withFuture.delayed, improving reliability and resource management. - Moved initial
DateTimeemission (whentriggerOnStartistrue) toFuture.microtaskto allow listeners to subscribe first. - Added
disposemethod inDateTimeLoopBuilderto properly cancel the timer and close the stream controller, preventing potential memory leaks.
1.3.1 - 2025-04-17 #
- Fixed
triggerOnStateChangeinDateTimeLoopBuilderto trigger immediate builds on init and parent rebuilds (Flutter issue #64916). - Updated example app’s Android code for Flutter > 3.27 compatibility.
- Updated
README.
1.3.0 - 2025-03-06 #
1.2.1 - 2024-11-09 #
1.2.0 - 2024-04-02 #
- New Feature: Added
millisecondstoTimeUnit. - update example
1.1.1 - 2024-04-02 #
- add example pubspec.lock to gitignore
1.1.0 - 2024-03-10 #
Changes:
- New Feature: Added
triggerOnStateChangeparameter toDateTimeLoopBuilder.
1.0.1 #
- remove unused code
- add example
1.0.0 #
- initial release