Caregiver Edit Bottom Sheet
Component Detail
User Interface
low complexity
mobile
1
Dependencies
1
Dependents
1
Entities
0
Integrations
Description
Modal bottom sheet for creating and updating caregiver records. Presents fields for caregiver name, relationship type via a predefined dropdown (spouse, parent, child, sibling, carer, other), phone number, and optional notes. Validates required fields before dispatching add or update events to the Caregiver BLoC.
caregiver-edit-bottom-sheet
Responsibilities
- Present caregiver add and edit form inside a modal bottom sheet
- Enforce predefined relationship types via a constrained dropdown
- Validate required fields (name, relationship type, phone) on submission
- Dispatch CreateCaregiver or UpdateCaregiver events to Caregiver BLoC
- Support keyboard avoidance and provide accessible form labels
Interfaces
CaregiverEditBottomSheet({required String contactId, CaregiverModel? existing})
show(BuildContext context): Future<void>