feat(view_orders): enhance date navigation and improve ViewOrdersCubit instantiation

This commit is contained in:
Achintha Isuru
2026-02-21 20:14:57 -05:00
parent 71b5f743de
commit 9817dbeec8
3 changed files with 25 additions and 5 deletions

View File

@@ -175,8 +175,9 @@ extension ClientNavigator on IModularNavigator {
/// Navigates to the order details page to a specific date.
void toOrdersSpecificDate(DateTime date) {
navigate(
pushNamedAndRemoveUntil(
ClientPaths.orders,
(_) => false,
arguments: <String, DateTime>{'initialDate': date},
);
}