pos changes
This commit is contained in:
@@ -8,6 +8,7 @@ import '../../presentation/auth/screens/login_screen.dart';
|
||||
import '../../presentation/payment/screens/payment_screen.dart';
|
||||
import '../../presentation/pos/screens/pos_dashboard_screen.dart';
|
||||
import '../../presentation/receipt/screens/receipt_screen.dart';
|
||||
import '../../presentation/shift/screens/end_shift_screen.dart';
|
||||
|
||||
class AppRoutes {
|
||||
const AppRoutes._();
|
||||
@@ -19,6 +20,10 @@ class AppRoutes {
|
||||
static const String pos = '/';
|
||||
static const String payment = '/payment';
|
||||
static const String receipt = '/receipt';
|
||||
|
||||
/// Drawer count and hand-over. Reached from the session-end chooser, never
|
||||
/// linked to directly, and guarded like every other signed-in route.
|
||||
static const String endShift = '/end-shift';
|
||||
}
|
||||
|
||||
/// Router with an authentication guard.
|
||||
@@ -60,6 +65,11 @@ final routerProvider = Provider<GoRouter>((ref) {
|
||||
pageBuilder: (context, state) =>
|
||||
_fade(state, const PosDashboardScreen()),
|
||||
),
|
||||
GoRoute(
|
||||
path: AppRoutes.endShift,
|
||||
name: 'endShift',
|
||||
pageBuilder: (context, state) => _slide(state, const EndShiftScreen()),
|
||||
),
|
||||
GoRoute(
|
||||
path: AppRoutes.payment,
|
||||
name: 'payment',
|
||||
|
||||
Reference in New Issue
Block a user