mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-02-16 14:29:35 +00:00
123
This commit is contained in:
parent
04fe06d1ac
commit
bd9e985697
13 changed files with 1036 additions and 878 deletions
|
|
@ -8,6 +8,8 @@ class AvailableHiveBoxes {
|
|||
const AvailableHiveBoxes._();
|
||||
|
||||
static Future<void> init() async {
|
||||
await Hive.openBox('basicTypes');
|
||||
|
||||
/// Box for storing user preferences as [AppSettings]
|
||||
await Hive.openBox<AppSettings>('userPrefs');
|
||||
|
||||
|
|
@ -27,6 +29,8 @@ class AvailableHiveBoxes {
|
|||
await Hive.openBox<BookSettings>('bookSettings');
|
||||
}
|
||||
|
||||
static final basicBox = Hive.box('basicTypes');
|
||||
|
||||
/// Box for storing user preferences as [AppSettings]
|
||||
static final userPrefsBox = Hive.box<AppSettings>('userPrefs');
|
||||
|
||||
|
|
|
|||
3
lib/db/cache/cache_key.dart
vendored
3
lib/db/cache/cache_key.dart
vendored
|
|
@ -10,4 +10,7 @@ class CacheKey {
|
|||
static String libraryItems(String id) {
|
||||
return 'library_items_$id';
|
||||
}
|
||||
|
||||
// 基础box的key 存储上一次播放的书籍id
|
||||
static String activeLibraryItemId = 'activeLibraryItemId';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue