feat: Implement modular routing for the attire capture page with a new route path and navigator method.
This commit is contained in:
@@ -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
|
||||
// ==========================================================================
|
||||
|
||||
@@ -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
|
||||
// ==========================================================================
|
||||
|
||||
Reference in New Issue
Block a user