Open Tamerlanchiques opened 1 year ago
Looks like that package is abadoned but maybe…
In my app I have different timer modes: 10 secs, 30 secs, 1 min and 2 min.
If I initiate SimpleTimer with, for example, 30 sec Duration it will be impossible to set max Duration to 1 and 2 mins.
That time I have workaround where I initializing SimpleTimer widget with max value (2 min) and change it to 30 sec immediately.
Found the way to refresh SimpleTimer widget. Add key: parameter with ValueKey(state.<some variable>). If ValueKey changes it will trigger full widget rebuild.
key:
ValueKey(state.<some variable>)
Looks like that package is abadoned but maybe…
In my app I have different timer modes: 10 secs, 30 secs, 1 min and 2 min.
If I initiate SimpleTimer with, for example, 30 sec Duration it will be impossible to set max Duration to 1 and 2 mins.
That time I have workaround where I initializing SimpleTimer widget with max value (2 min) and change it to 30 sec immediately.