Merge branch 'refs/heads/export_module_ui_ux_enhancement' into ui_ux_rollout_merge

ui_ux_rollout_merge
Sikander Saleem 4 weeks ago
commit 3807375439

@ -742,6 +742,7 @@ class AllRequestsProvider extends ChangeNotifier {
List<int>? statusTransaction,
List<int>? priority,
List<int>? displayData,
bool? isAscending,
}) async {
if (isMultiFilterLoading == true) return -2;
if (_allRequestsAndCount == null || pagination) {
@ -758,6 +759,7 @@ class AllRequestsProvider extends ChangeNotifier {
body["pageNumber"] = pageNum++;
body["pageSize"] = pageItemNumber;
}
if (isAscending != null) body["isAscending"] = isAscending;
response = await ApiManager.instance.post(URLs.getAllRequestsAndCount, body: body);
stateCode = response.statusCode;

@ -348,6 +348,7 @@ class DashBoardProvider extends ChangeNotifier {
statusTransaction: statusTransaction,
priority: priority,
displayData: displayData,
isAscending: isAscending,
);
}

@ -83,8 +83,8 @@ class _RequestCategoryFragmentState extends State<RequestCategoryFragment> with
Provider.of<AllRequestsProvider>(context, listen: false).reset();
if (dashboardProvider.listIndex.isEmpty) {
// No category selected - do nothing or could reload default
return;
// No category selected - reload default data with sorting
Provider.of<AllRequestsProvider>(context, listen: false).getAllRequests(context, isAscending: isAscending);
} else if (dashboardProvider.listIndex.length == 1 && dashboardProvider.isUnassignedTab(dashboardProvider.listIndex[0])) {
// UnAssigned only - check by requestType, not by index
int index = dashboardProvider.listIndex[0];

@ -37,6 +37,7 @@ class AAlertDialog extends StatelessWidget {
)
: AlertDialog(
backgroundColor: AppColor.background(context),
actionsPadding: const EdgeInsets.only(bottom: 12, left: 24, right: 24),
title: title != null ? Text(title!) : null,
content: content != null ? Text(content!) : null,
// contentTextStyle: AppTextStyles.bodyText.copyWith(color: (context.isDark ? AppColor.neutral30 : AppColor.neutral50)),

Loading…
Cancel
Save