Activity Form Screen
Component Detail
User Interface
medium complexity
mobile
3
Dependencies
1
Dependents
2
Entities
0
Integrations
Description
A minimal, accessible form screen for recording a peer mentor activity. Pre-fills today's date and a 30-minute duration as overridable defaults, and presents activity types as a fixed selection list fetched from the backend. Optimised for sub-two-tap completion and full WCAG 2.2 AA compliance.
activity-form-screen
Responsibilities
- Render the activity registration form with pre-filled date and duration defaults that users can override
- Display activity types as a fixed, backend-sourced selection list to ensure consistent categorisation
- Validate form inputs and submit the completed record to Activity Service
- Provide accessible semantic labels and minimum 24x24 touch targets on all interactive elements per WCAG 2.2
- Support offline submission by writing to the local Drift database and mutation outbox immediately on submit
Interfaces
build(BuildContext context) → Widget
onSubmit(ActivityFormData data) → Future<void>
onActivityTypeSelected(ActivityType type) → void
onDateChanged(DateTime date) → void
onDurationChanged(int minutes) → void
onCancel() → void
Relationships
Dependencies (3)
Components this component depends on
Related Data Entities (2)
Data entities managed by this component