first commit

This commit is contained in:
2025-03-03 20:59:42 +03:00
commit 273e68557a
1099 changed files with 17880 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
import 'package:hive_ce_flutter/hive_flutter.dart';
import 'package:remever/i18n/strings.g.dart';
class AppLocaleAdapter extends TypeAdapter<AppLocale> {
@override
int get typeId => 101;
@override
AppLocale read(BinaryReader reader) {
final int tm = reader.readInt();
return AppLocale.values.elementAt(tm);
}
@override
void write(BinaryWriter writer, AppLocale obj) {
writer.writeInt(obj.index);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is AppLocaleAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}