Vaani/lib/db/available_boxes.dart
Dr.Blank e23c0b6c5f
Some checks are pending
Flutter CI & Release / Test (push) Waiting to run
Flutter CI & Release / Build Android APKs (push) Blocked by required conditions
Flutter CI & Release / build_linux (push) Blocked by required conditions
Flutter CI & Release / Create GitHub Release (push) Blocked by required conditions
chore: run dart format
2026-01-10 16:51:05 +05:30

30 lines
999 B
Dart

import 'package:flutter/foundation.dart' show immutable;
import 'package:hive_plus_secure/hive_plus_secure.dart';
import 'package:vaani/features/per_book_settings/models/book_settings.dart';
import 'package:vaani/settings/models/models.dart';
@immutable
class AvailableHiveBoxes {
const AvailableHiveBoxes._();
/// Box for storing user preferences as [AppSettings]
static final userPrefsBox = Hive.box<AppSettings>(name: 'userPrefs');
/// Box for storing [ApiSettings]
static final apiSettingsBox = Hive.box<ApiSettings>(name: 'apiSettings');
/// stores the a list of [AudiobookShelfServer]
static final serverBox = Hive.box<AudiobookShelfServer>(
name: 'audiobookShelfServer',
);
/// stores the a list of [AuthenticatedUser]
static final authenticatedUserBox = Hive.box<AuthenticatedUser>(
name: 'authenticatedUser',
);
/// stores the a list of [BookSettings]
static final individualBookSettingsBox = Hive.box<BookSettings>(
name: 'bookSettings',
);
}