feat: Implement bank account management feature with UI, BLoC integration, and repository setup

This commit is contained in:
Achintha Isuru
2026-01-24 22:36:29 -05:00
parent f035ab8b6c
commit e6e2783a5a
25 changed files with 766 additions and 9 deletions

View File

@@ -22,8 +22,8 @@ extension HomeNavigator on IModularNavigator {
}
/// Navigates to the payments page.
void pushPayments() {
pushNamed('/payments');
void navigateToPayments() {
navigate('/worker-main/payments');
}
/// Navigates to the shifts listing.

View File

@@ -131,7 +131,7 @@ class WorkerHomePage extends StatelessWidget {
child: QuickActionItem(
icon: LucideIcons.dollarSign,
label: quickI18n.earnings,
onTap: () => Modular.to.pushPayments(),
onTap: () => Modular.to.navigateToPayments(),
),
),
],

View File

@@ -16,7 +16,7 @@ class PendingPaymentCard extends StatelessWidget {
Widget build(BuildContext context) {
final pendingI18n = t.staff.home.pending_payment;
return GestureDetector(
onTap: () => Modular.to.pushPayments(),
onTap: () => Modular.to.navigateToPayments(),
child: Container(
padding: const EdgeInsets.all(UiConstants.space4),
decoration: BoxDecoration(