feat: Implement emergency contact management feature with UI and BLoC integration

This commit is contained in:
Achintha Isuru
2026-01-24 20:40:02 -05:00
parent caaf972349
commit c124111f46
25 changed files with 819 additions and 29 deletions

View File

@@ -42,4 +42,27 @@ class ProfileRepositoryMock {
// Simulate processing delay
await Future.delayed(const Duration(milliseconds: 300));
}
/// Fetches emergency contacts for the given staff ID.
///
/// Returns a list of [EmergencyContact].
Future<List<EmergencyContact>> getEmergencyContacts(String staffId) async {
await Future.delayed(const Duration(milliseconds: 500));
return [
const EmergencyContact(
name: 'Jane Doe',
phone: '555-987-6543',
relationship: 'Family',
),
];
}
/// Saves emergency contacts for the given staff ID.
Future<void> saveEmergencyContacts(
String staffId,
List<EmergencyContact> contacts,
) async {
await Future.delayed(const Duration(seconds: 1));
// Simulate save
}
}