fix : splash animation
feat : auth with password chore : app Architecture
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user