fix : get not entered

This commit is contained in:
2025-07-13 11:50:38 +03:30
parent a909210144
commit 0558ebdb37

View File

@@ -10,8 +10,8 @@ import 'package:rasadyar_core/core.dart';
class BuyInProvinceWaitingLogic extends GetxController { class BuyInProvinceWaitingLogic extends GetxController {
RxList<int> isExpandedList = <int>[].obs; RxList<int> isExpandedList = <int>[].obs;
Rx<Jalali> fromDateFilter = Jalali.now().obs; Rxn<Jalali> fromDateFilter = Rxn();
Rx<Jalali> toDateFilter = Jalali.now().obs; Rxn<Jalali> toDateFilter = Rxn();
RxnString searchedValue = RxnString(); RxnString searchedValue = RxnString();
RxMap<String, bool> isLoadingConfirmMap = RxMap(); RxMap<String, bool> isLoadingConfirmMap = RxMap();
Rx<Color> bgConfirmAllColor = AppColor.blueNormal.obs; Rx<Color> bgConfirmAllColor = AppColor.blueNormal.obs;
@@ -56,7 +56,7 @@ class BuyInProvinceWaitingLogic extends GetxController {
if (searchedValue.value != null && if (searchedValue.value != null &&
searchedValue.value!.trim().isNotEmpty && searchedValue.value!.trim().isNotEmpty &&
currentPage.value > 1) { currentPage.value > 1) {
currentPage.value = 1; // Reset to first page if search value is set currentPage.value = 1;
} }
safeCall( safeCall(
@@ -69,8 +69,8 @@ class BuyInProvinceWaitingLogic extends GetxController {
search: 'filter', search: 'filter',
role: 'Steward', role: 'Steward',
value: searchedValue.value, value: searchedValue.value,
fromDate: fromDateFilter.value.toDateTime(), fromDate: fromDateFilter.value?.toDateTime(),
toDate: toDateFilter.value.toDateTime(), toDate: toDateFilter.value?.toDateTime(),
), ),
), ),
onSuccess: (res) async { onSuccess: (res) async {