feat: add staff time card feature with localization and repository implementation

- Implemented Spanish translations for time card related strings.
- Created TimeCardRepository to fetch time card data based on shifts.
- Added use cases for retrieving time cards and payment history.
- Developed BLoC for managing time card state and events.
- Designed UI components for displaying time card summary and shift history.
- Integrated time card navigation within the staff main module.
- Updated pubspec.yaml files to include new dependencies and modules.
This commit is contained in:
Achintha Isuru
2026-01-25 21:16:50 -05:00
parent 6ad2cf4c2d
commit 0622002014
33 changed files with 972 additions and 74 deletions

View File

@@ -12,6 +12,7 @@ import 'package:staff_certificates/staff_certificates.dart';
import 'package:staff_attire/staff_attire.dart';
import 'package:staff_shifts/staff_shifts.dart';
import 'package:staff_payments/staff_payements.dart';
import 'package:staff_time_card/staff_time_card.dart';
import 'package:staff_main/src/presentation/blocs/staff_main_cubit.dart';
import 'package:staff_main/src/presentation/constants/staff_main_routes.dart';
@@ -67,5 +68,9 @@ class StaffMainModule extends Module {
'/certificates',
module: StaffCertificatesModule(),
);
r.module(
'/time-card',
module: StaffTimeCardModule(),
);
}
}

View File

@@ -47,6 +47,8 @@ dependencies:
path: ../shifts
staff_payments:
path: ../payments
staff_time_card:
path: ../profile_sections/finances/time_card
dev_dependencies:
flutter_test: