hive切换hive_ce

This commit is contained in:
rang 2025-12-22 15:04:04 +08:00
parent 3362a254ff
commit 6efa41e035
30 changed files with 1403 additions and 2566 deletions

View file

@ -20,7 +20,7 @@ final _logger = Logger('authenticated_users_provider');
class AuthenticatedUsers extends _$AuthenticatedUsers {
@override
Set<model.AuthenticatedUser> build() {
ref.listenSelf((_, __) {
listenSelf((_, __) {
writeStateToBox();
});
// get the app settings
@ -35,7 +35,7 @@ class AuthenticatedUsers extends _$AuthenticatedUsers {
Set<model.AuthenticatedUser> readFromBoxOrCreate() {
if (_box.isNotEmpty) {
final foundData = _box.getRange(0, _box.length);
final foundData = _box.values.toList();
_logger.fine(
'found users in box: ${foundData.obfuscate()}',
);