once
Want to run a piece of code once periodically (Once - Daily - Weekly - Monthly - On new build - On new version - Any period)? We cover your back.
1.8.0
2.7K downloads/mo
#4827 most downloaded on pub.dev
MostafaSolimanMO/once
What this package is like to depend on
Last release 3 months ago
26 Apr 2026
Release timing varies
gaps range from 1 weeks to 10 months
Nearly every release is documented
notes for 19 of 20 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
20 releases · first in 2022
2 releases in the last 12 months
see the full history below
Release timeline
20 releases · Feb 2022 to Apr 2026Releases
latest 20-
1.8.026 Apr 2026Release notes
Open source →What's Changed
- Fix static analysis missing type annotations by @MostafaSolimanMO in #36
- Add comprehensive test suite with 100% coverage by @MostafaSolimanMO in #37
- Refactor: daysInMonth to use DateTime by @MohamedGawdat in #31
- Feat: add untilDone functionality (v1.8.0) by @MostafaSolimanMO in #38
New Contributors
- @MohamedGawdat made their first contribution in #31
Full Changelog: 1.7.1...1.8.0
Release notes
Open source →- Feat: Add
runUntilDoneandshowUntilDoneto allow persistent actions until user dismissal. (Thanks to @MohamedGawdat for the idea and initial implementation!) - Feat: Add
markDoneutility to manually flag keys as completed. - Refactor: Replace manual leap-year logic with DateTime-based calculation for daysInMonth.
- Fix: Resolve static analysis missing type annotations.
- Tests: Add comprehensive test suite achieving 100% test coverage.
- Docs: Added comprehensive Dartdocs for the new feature.
-
1.7.130 Nov 2025 -
1.7.022 Jan 2025Release notes
Open source →What's Changed
- Core/Builder: Convert OnceBuilder build from FutureBuilder to StatefulWidget (#26) by @MostafaSolimanMO in #28
- Chore: Update dependencies
package_info_plusto^8.1.3 - Require Dart 3.3.0 or higher
Full Changelog: 1.6.3...1.7.0
Release notes
Open source →- Core: Convert OnceBuilder build from FutureBuilder to StatefulWidget Issue #29
- Chore: Update dependencies
package_info_plusto^8.1.3 - Require Dart 3.3.0 or higher
-
1.6.316 May 2024Release notes
Open source →What's Changed
- Chore: Updates dependencies
shared_preferencesto^2.2.3andpackage_info_plusto^8.0.0by @MostafaSolimanMO
Full Changelog: 1.6.2...1.6.3
Release notes
Open source →- Chore: Updates dependencies
shared_preferencesto^2.2.3andpackage_info_plusto^8.0.0
- Chore: Updates dependencies
-
1.6.224 Mar 2024Release notes
Open source →What's Changed
- Chore: Updates dependencies
package_info_plusto^6.0.0by @MostafaSolimanMO - Chore: Updates minimum Dart SDK to
>=3.3.0by @MostafaSolimanMO
Release notes
Open source →- Chore: Updates dependencies
package_info_plusto^6.0.0 - Chore: Updates minimum Dart SDK to
>=3.3.0
- Chore: Updates dependencies
-
1.6.118 Jan 2024Release notes
Open source →What's Changed
- Chore: Update dependencies
package_info_plusto^5.0.1by @MostafaSolimanMO in #27
Full Changelog: 1.6.0...1.6.1
- Chore: Update dependencies
-
1.6.007 Nov 2023Release notes
Open source →What's Changed
- Feat: Added runOnEveryNewBuild Function
- Fix:
runOnNewVersionsaves version numbers with non-numerical values and does not sanitize them upon retrieval Issue #24 - Fix: Types Error in
runner.dart - Chore: Update dependencies & example app
Release notes
Open source →- Feat: Added runOnEveryNewBuild Function
- Fix:
runOnNewVersionsaves version numbers with non-numerical values and does not sanitize them upon retrieval Issue #24 - Fix: Types Error in
runner.dart - Chore: Update dependencies & example app
-
1.5.404 Sep 2023Release notes
Open source →What's Changed
- Fix: Unhandled Exception: FormatException on Once.runOnNewVersion #20
- Chore: Update dependencies
-
1.5.319 Jul 2023 -
1.5.209 Jul 2023Release notes
Open source →- fix: add
uniqueKeytorunOnNewVersionto fix runOnEveryNewVersion runs only once even if used in multiple pages - chore: update dependencies
- fix: add
-
1.5.119 Jan 2023Release notes
Open source →- fix:
OnceBuilder.fallback()is always called at least one time when specified - chore: update dependencies
- fix:
-
1.5.007 Nov 2022Release notes
Open source →- fix:
runOnce&runEvery12Hoursfallback wasn't working properly - chore: update dependencies
- fix:
-
1.4.105 Apr 2022 -
1.4.005 Apr 2022Release notes
Open source →-
Add Functions
clearremoves theOnceorOnceWidgetdata for a specifickey.clearAllremoves all theOnceandOnceWidgetdata.
-
Add debug parameters that only works in debug mode
debugCallbackused to debug thecallbackfunction.debugFallbackused to debug thefallbackfunction.
-
Add prefix to the
keyto make it unique No changes required.
-
-
1.2.102 Mar 2022 -
1.2.002 Mar 2022Release notes
Open source →- Add
WidgetOncethat returnWidget - Add
runOnNewDaymethod that runs on every new day. The day here means you run the function at 3:00 AM. So, Day means the next 12:00 AM.
- Add
-
1.1.201 Mar 2022 -
1.1.101 Mar 2022Nothing published for this version
-
1.1.001 Mar 2022Release notes
Open source →- Fix bugs
- All periodic functions now are returning a nullable generic typed Future
Future<T?> - Add
fallbackin case if that callback future returns null
-
1.0.024 Feb 2022