once 1.7.1
once: ^1.7.1 copied to clipboard
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.7.1 #
- Chore: Update dependencies
package_info_plusto^9.0.0
1.7.0 #
- 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.3 #
- Chore: Updates dependencies
shared_preferencesto^2.2.3andpackage_info_plusto^8.0.0
1.6.2 #
- Chore: Updates dependencies
package_info_plusto^6.0.0 - Chore: Updates minimum Dart SDK to
>=3.3.0
1.6.1 #
- Chore: Update dependencies
package_info_plusto^5.0.1
1.6.0 #
- 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.3 #
- fix
runOnNewVersioncallback even on first run
1.5.2 #
- fix: add
uniqueKeytorunOnNewVersionto fix runOnEveryNewVersion runs only once even if used in multiple pages - chore: update dependencies
1.5.1 #
- fix:
OnceBuilder.fallback()is always called at least one time when specified - chore: update dependencies
1.5.0 #
- fix:
runOnce&runEvery12Hoursfallback wasn't working properly - chore: update dependencies
1.4.1 #
- fix: clear key was missing the prefix
1.4.0 #
-
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.3.0 #
- Add
BuildContextto thebuilderandfallbackofWidgetOnce
1.2.1 #
- ReadMe.md Update
1.2.0 #
- 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.
1.1.2 #
- Analyzing
1.1.0 #
- 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.0 #
- initial release.