feat: update client routing paths for order creation; streamline navigation and remove deprecated routes
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'package:flutter/widgets.dart';
|
||||
import 'package:flutter_modular/flutter_modular.dart';
|
||||
import 'package:krow_core/core.dart';
|
||||
import 'package:krow_data_connect/krow_data_connect.dart';
|
||||
import 'package:firebase_auth/firebase_auth.dart' as firebase;
|
||||
import 'data/repositories_impl/client_create_order_repository_impl.dart';
|
||||
@@ -57,17 +58,20 @@ class ClientCreateOrderModule extends Module {
|
||||
'/',
|
||||
child: (BuildContext context) => const ClientCreateOrderPage(),
|
||||
);
|
||||
r.child('/rapid', child: (BuildContext context) => const RapidOrderPage());
|
||||
r.child(
|
||||
'/one-time',
|
||||
ClientPaths.createOrderRapid.replaceFirst(ClientPaths.createOrder, ''),
|
||||
child: (BuildContext context) => const RapidOrderPage(),
|
||||
);
|
||||
r.child(
|
||||
ClientPaths.createOrderOneTime.replaceFirst(ClientPaths.createOrder, ''),
|
||||
child: (BuildContext context) => const OneTimeOrderPage(),
|
||||
);
|
||||
r.child(
|
||||
'/recurring',
|
||||
ClientPaths.createOrderRecurring.replaceFirst(ClientPaths.createOrder, ''),
|
||||
child: (BuildContext context) => const RecurringOrderPage(),
|
||||
);
|
||||
r.child(
|
||||
'/permanent',
|
||||
ClientPaths.createOrderPermanent.replaceFirst(ClientPaths.createOrder, ''),
|
||||
child: (BuildContext context) => const PermanentOrderPage(),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user