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,17 @@
import 'package:hive_ce/hive.dart';
import '../../data_provider/local_storage/hive/hive_types.dart';
part 'user_model.g.dart';
@HiveType(typeId: userTypeId)
class UserModel extends HiveObject{
@HiveField(0)
String? token;
@HiveField(1)
String? refreshToken;
UserModel({this.token, this.refreshToken});
}

View File

@@ -0,0 +1,44 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'user_model.dart';
// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************
class UserModelAdapter extends TypeAdapter<UserModel> {
@override
final int typeId = 0;
@override
UserModel read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return UserModel(
token: fields[0] as String?,
refreshToken: fields[1] as String?,
);
}
@override
void write(BinaryWriter writer, UserModel obj) {
writer
..writeByte(2)
..writeByte(0)
..write(obj.token)
..writeByte(1)
..write(obj.refreshToken);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is UserModelAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}