fix : splash animation

feat : auth with password
chore : app Architecture
This commit is contained in:
2025-04-07 16:49:15 +03:30
parent 50cc84461e
commit e83388670c
32 changed files with 1192 additions and 276 deletions

View File

@@ -0,0 +1,19 @@
import 'package:hive_ce_flutter/hive_flutter.dart';
import 'package:rasadyar_app/data/data_provider/local_storage/hive/hive_provider.dart';
abstract class IUserLocalStorage {
Future<bool> userAuthed();
}
class UserLocalStorage extends IUserLocalStorage {
final user = Hive.box(HiveBoxNames.user.name);
@override
Future<bool> userAuthed() async {
if (user.isNotEmpty ) {
return true;
} else {
return false;
}
}
}