feat: implement child route management for client and staff modules; enhance routing structure for better navigation
This commit is contained in:
@@ -59,19 +59,19 @@ class ClientCreateOrderModule extends Module {
|
||||
child: (BuildContext context) => const ClientCreateOrderPage(),
|
||||
);
|
||||
r.child(
|
||||
ClientPaths.createOrderRapid.replaceFirst(ClientPaths.createOrder, ''),
|
||||
ClientPaths.childRoute(ClientPaths.createOrder, ClientPaths.createOrderRapid),
|
||||
child: (BuildContext context) => const RapidOrderPage(),
|
||||
);
|
||||
r.child(
|
||||
ClientPaths.createOrderOneTime.replaceFirst(ClientPaths.createOrder, ''),
|
||||
ClientPaths.childRoute(ClientPaths.createOrder, ClientPaths.createOrderOneTime),
|
||||
child: (BuildContext context) => const OneTimeOrderPage(),
|
||||
);
|
||||
r.child(
|
||||
ClientPaths.createOrderRecurring.replaceFirst(ClientPaths.createOrder, ''),
|
||||
ClientPaths.childRoute(ClientPaths.createOrder, ClientPaths.createOrderRecurring),
|
||||
child: (BuildContext context) => const RecurringOrderPage(),
|
||||
);
|
||||
r.child(
|
||||
ClientPaths.createOrderPermanent.replaceFirst(ClientPaths.createOrder, ''),
|
||||
ClientPaths.childRoute(ClientPaths.createOrder, ClientPaths.createOrderPermanent),
|
||||
child: (BuildContext context) => const PermanentOrderPage(),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user