feat: Implement emergency contact management feature with UI and BLoC integration
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user