feat: add auto-scan option for local library

Add a new 'Auto Scan' setting under Local Library with four modes:
off, every app open (10min cooldown), daily, and weekly. The app
uses WidgetsBindingObserver to trigger incremental scans on launch
and when resuming from background, respecting the configured
cooldown based on the last scan timestamp.
This commit is contained in:
zarzet committed 2026-03-16 20:35:59 +07:00
1 parent 929c5f3249
commit 6710f90e1e
20 files changed
+526 -3

No files matched your search

+5
View File
@@ -518,6 +518,11 @@ class SettingsNotifier extends Notifier<AppSettings> {
_saveSettings();
}
void setLocalLibraryAutoScan(String mode) {
state = state.copyWith(localLibraryAutoScan: mode);
_saveSettings();
}
void setTutorialComplete() {
state = state.copyWith(hasCompletedTutorial: true);
_saveSettings();