feat : cashing data in local storage and send it

This commit is contained in:
2025-08-11 12:56:26 +03:30
parent 2669af7a92
commit aa1b9e899a
16 changed files with 635 additions and 32 deletions

View File

@@ -0,0 +1,29 @@
// Generated by Hive CE
// Do not modify
// Check in to version control
import 'package:hive_ce/hive.dart';
import 'package:rasadyar_livestock/data/model/local/live_tmp/car.dart';
import 'package:rasadyar_livestock/data/model/local/live_tmp/livestock_local_model.dart';
extension HiveRegistrar on HiveInterface {
void registerAdapters() {
registerAdapter(CarsLocalAdapter());
registerAdapter(HerdLocalAdapter());
registerAdapter(LivestockLocalAdapter());
registerAdapter(LivestockLocalModelAdapter());
registerAdapter(LocationLocalAdapter());
registerAdapter(RancherLocalAdapter());
}
}
extension IsolatedHiveRegistrar on IsolatedHiveInterface {
void registerAdapters() {
registerAdapter(CarsLocalAdapter());
registerAdapter(HerdLocalAdapter());
registerAdapter(LivestockLocalAdapter());
registerAdapter(LivestockLocalModelAdapter());
registerAdapter(LocationLocalAdapter());
registerAdapter(RancherLocalAdapter());
}
}