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.

Feature: Caregiver & Next-of-Kin

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>

Relationships

Dependencies (1)

Components this component depends on

Dependents (1)

Components that depend on this component

Related Data Entities (1)

Data entities managed by this component