feat : cashing data in local storage and send it
This commit is contained in:
3
packages/core/devtools_options.yaml
Normal file
3
packages/core/devtools_options.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
description: This file stores settings for Dart & Flutter DevTools.
|
||||
documentation: https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states
|
||||
extensions:
|
||||
@@ -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