feat(offline-first): persist hijri+unsplash cache and scale secondary times

This commit is contained in:
dwindown
2026-04-06 07:53:14 +07:00
parent 4062db77e4
commit 185c55a143
8 changed files with 371 additions and 41 deletions

View File

@@ -69,6 +69,7 @@ Future<void> _bootstrapAndRun() async {
Hive.registerAdapter(DailyPrayerScheduleAdapter());
await Hive.openBox<AppSettings>(HiveBoxes.settings);
await Hive.openBox<DailyPrayerSchedule>(HiveBoxes.prayerSchedule);
await Hive.openBox<String>(HiveBoxes.hijriCache);
// Seed defaults if first launch
final settingsBox = Hive.box<AppSettings>(HiveBoxes.settings);