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

@@ -21,7 +21,7 @@ class TokenStorageService extends GetxService {
Rxn<Module> appModule = Rxn(null);
Future<void> init() async {
await Hive.initFlutter();
Hive.registerAdapters();
final String? encryptedKey = await _secureStorage.read(key: 'hive_enc_key');

View File

@@ -4,4 +4,12 @@ const int authModuleTypeId = 1;
//chicken
const int chickenWidelyUsedLocalModelTypeId = 2;
const int chickenWidelyUsedLocalItemTypeId = 3;
const int chickenWidelyUsedLocalItemTypeId = 3;
//liveStock
const int liveStockDataLocalModelTypeId = 4;
const int liveStockDataRancherLocalModelTypeId = 5;
const int liveStockDataHerdLocalModelTypeId = 6;
const int liveStockDataLocationLocalModelTypeId = 7;
const int liveStockDataLivestockLocalModelTypeId = 8;