feat: Implement modular routing for the attire capture page with a new route path and navigator method.

This commit is contained in:
Achintha Isuru
2026-02-25 19:30:42 -05:00
parent e0722c938d
commit c7c505f743
5 changed files with 39 additions and 19 deletions

View File

@@ -199,6 +199,21 @@ extension StaffNavigator on IModularNavigator {
pushNamed(StaffPaths.attire);
}
/// Pushes the attire capture page.
///
/// Parameters:
/// * [item] - The attire item to capture
/// * [initialPhotoUrl] - Optional initial photo URL
void toAttireCapture({required AttireItem item, String? initialPhotoUrl}) {
navigate(
StaffPaths.attireCapture,
arguments: <String, dynamic>{
'item': item,
'initialPhotoUrl': initialPhotoUrl,
},
);
}
// ==========================================================================
// COMPLIANCE & DOCUMENTS
// ==========================================================================

View File

@@ -152,6 +152,9 @@ class StaffPaths {
/// Record sizing and appearance information for uniform allocation.
static const String attire = '/worker-main/attire/';
/// Attire capture page.
static const String attireCapture = '/worker-main/attire/capture/';
// ==========================================================================
// COMPLIANCE & DOCUMENTS
// ==========================================================================