my_timer 1.0.1
my_timer: ^1.0.1 copied to clipboard
A customizable Flutter timer widget that supports incrementing and decrementing time with callbacks for tick and completion.
1.0.0 Initial Release #
- Added
MyTimerwidget that allows incrementing and decrementing time. - Supports custom tick intervals via the
tickInSecondproperty. - Added start, stop, and complete callbacks through the
MyTimerController. - Allows customizable child widget or default time display.
- Accepts styling options for the time display text.
- Supports both incrementing and decrementing modes with start and end time.
1.0.1 - 2025-03-20 #
Added #
- Builder Support: Added a builder to access
remainingTimeInSecondsandBuildContext, allowing more flexible UI updates. - Provider Integration: Refactored the
MyTimerwidget to useProviderfor improved state management and access. - New Callbacks: Enhanced the
MyTimerControllerwith additional callbacks for better timer control. - Code Refactoring: Improved code structure and readability.
Fixed #
- Fixed a bug where multiple timers could start without stopping the previous one.
- Optimized timer performance by reducing unnecessary
setStatecalls.