Merge branch with resolved conflicts - restructured features and added new modules

This commit is contained in:
2025-12-17 10:26:39 +03:30
484 changed files with 55236 additions and 4255 deletions

View File

@@ -19,4 +19,44 @@ const int killHouseWarehouseAndDistributionSaleKey = 110;
//endregion
//region poultry science Keys
const int poultryScienceActionKey = 109;
//endregion
//region province operator Keys
const int provinceOperatorActionKey = 110;
//endregion
//region province inspector Keys
const int provinceInspectorActionKey = 111;
//endregion
//region city jahad Keys
const int cityJahadActionKey = 112;
//endregion
//region vet farm Keys
const int vetFarmActionKey = 113;
//endregion
//region super admin Keys
const int superAdminActionKey = 114;
//endregion
//region province supervisor Keys
const int provinceSupervisorActionKey = 115;
//endregion
//region jahad Keys
const int jahadActionKey = 116;
//endregion

View File

@@ -1,19 +1,28 @@
import 'package:flutter/material.dart';
import 'package:rasadyar_chicken/features/common/presentation/routes/routes.dart';
import 'package:rasadyar_chicken/presentation/routes/routes.dart';
import 'package:rasadyar_core/core.dart';
const int timeDebounce = 1200;
void handleGeneric(DioException error, [void Function()? onError]) {
Get.showSnackbar(_errorSnackBar('اعتبار توکن شما منقضی شده است لطفا دوباره وارد شوید'));
Get.showSnackbar(
_errorSnackBar('اعتبار توکن شما منقضی شده است لطفا دوباره وارد شوید'),
);
Get.offAllNamed(ChickenRoutes.auth, arguments: Module.chicken);
Get.offAllNamed(CommonRoutes.auth, arguments: Module.chicken);
}
GetSnackBar _errorSnackBar(String message) {
return GetSnackBar(
titleText: Text('خطا', style: AppFonts.yekan14.copyWith(color: Colors.white)),
messageText: Text(message, style: AppFonts.yekan12.copyWith(color: Colors.white)),
titleText: Text(
'خطا',
style: AppFonts.yekan14.copyWith(color: Colors.white),
),
messageText: Text(
message,
style: AppFonts.yekan12.copyWith(color: Colors.white),
),
backgroundColor: AppColor.error,
margin: EdgeInsets.symmetric(horizontal: 12, vertical: 8),
borderRadius: 12,