Refactor navigation and remove unused navigator extensions across staff features

- Removed background color from CreateOrderView, OneTimeOrderView, and RapidOrderView.
- Updated navigation paths in OneTimeOrderView and other staff authentication pages to use new constants.
- Deleted unused navigator extensions for staff authentication, home, profile, and shifts.
- Refactored navigation in StaffMainModule to use new path constants.
- Cleaned up imports and adjusted navigation calls in various staff-related pages and widgets.
This commit is contained in:
Achintha Isuru
2026-02-04 18:22:39 -05:00
parent b5c3af580c
commit 3b11c49d90
41 changed files with 122 additions and 434 deletions

View File

@@ -1,7 +0,0 @@
import 'package:flutter_modular/flutter_modular.dart';
extension StaffBankAccountNavigator on IModularNavigator {
void popPage() {
pop();
}
}

View File

@@ -8,7 +8,7 @@ import 'package:krow_domain/krow_domain.dart';
import '../blocs/bank_account_cubit.dart';
import '../blocs/bank_account_state.dart';
import '../navigation/staff_bank_account_navigator.dart';
import 'package:krow_core/core.dart';
import '../widgets/add_account_form.dart';
class BankAccountPage extends StatelessWidget {
@@ -33,7 +33,7 @@ class BankAccountPage extends StatelessWidget {
elevation: 0,
leading: IconButton(
icon: const Icon(UiIcons.arrowLeft, color: UiColors.textSecondary),
onPressed: () => Modular.to.popPage(),
onPressed: () => Modular.to.pop(),
),
title: Text(
strings.title,
@@ -118,10 +118,10 @@ class BankAccountPage extends StatelessWidget {
accountNumber: account,
type: type,
);
Modular.to.popPage();
Modular.to.pop();
},
onCancel: () {
Modular.to.popPage();
Modular.to.pop();
},
),
);