mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-02-08 02:19:34 +00:00
something
This commit is contained in:
parent
dbf4ce1959
commit
a720c977c2
115 changed files with 8819 additions and 1 deletions
22
lib/db/available_boxes.dart
Normal file
22
lib/db/available_boxes.dart
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import 'package:flutter/foundation.dart' show immutable;
|
||||
import 'package:hive/hive.dart';
|
||||
import 'package:whispering_pages/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');
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue