feat : cashing data in local storage and send it
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user